Summary: | Build is broken with trunk Clang | ||
---|---|---|---|
Product: | [Developer tools] clazy | Reporter: | Eugene Zelenko <eugene.zelenko> |
Component: | general | Assignee: | Sergio Martins <smartins> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | smartins |
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/clazy/86dc9018a0d49ab1f22ff40c1ecae446f07b1ece | Version Fixed In: | |
Sentry Crash Report: |
Description
Eugene Zelenko
2019-01-10 20:04:37 UTC
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 |