src/checks/manuallevel/qrequiredresult-candidates.cpp:48:17: error: no member named 'hasUnusedResultAttr' in 'clang::CXXMethodDecl'
Git commit 07a54ffa240a9727095dc956b91987a08ddbc11a by Sergio Martins. Committed on 11/01/2019 at 20:02. Pushed by smartins into branch 'master'. Try to fix build with clang trunk I don't have trunk, but this should work. Maybe some header missing. Reporter to test. M +23 -0 src/SourceCompatibilityHelpers.h M +1 -1 src/checks/manuallevel/qrequiredresult-candidates.cpp https://commits.kde.org/clazy/07a54ffa240a9727095dc956b91987a08ddbc11a
Please check if this works, if not, try to figure our what's the missing include or so :)
Next changes must be made in SourceCompatibilityHelpers.h to compile Clazy: #include <clang/AST/Attr.h> By the word, headers should be sorted alphabetically. -if (const EnumDecl *ED = ET->getDecl()) { +if (const clang::EnumDecl *ED = ET->getDecl()) { -return clang::getAttr<clang::WarnUnusedResultAttr>() != nullptr; +return func->getAttr<clang::WarnUnusedResultAttr>() != nullptr;
Git commit 86dc9018a0d49ab1f22ff40c1ecae446f07b1ece by Sergio Martins. Committed on 13/01/2019 at 18:31. Pushed by smartins into branch 'master'. Finish fixing build with trunk Eugene tested M +5 -4 src/SourceCompatibilityHelpers.h https://commits.kde.org/clazy/86dc9018a0d49ab1f22ff40c1ecae446f07b1ece