| Summary: | Build is broken with trunk LLVM/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/06edd15fdda9155b54366d3887a4fbf25cf1d911 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
Git commit 06edd15fdda9155b54366d3887a4fbf25cf1d911 by Sergio Martins. Committed on 06/05/2018 at 18:14. Pushed by smartins into branch 'master'. Fix build with clang 8.0 M +14 -4 src/checks/level2/old-style-connect.cpp https://commits.kde.org/clazy/06edd15fdda9155b54366d3887a4fbf25cf1d911 Actually trunk LLVM/Clang version is 7. indeed, thanks! commit fa6f5d8e206eca0823cfa5030abb5c824f7685ac (HEAD -> master, origin/master, origin/HEAD) Author: Sergio Martins <iamsergio@gmail.com> Date: Tue May 8 15:52:06 2018 +0100 Actually fix build with clang 7.0 Trunk is 7.0, not 8.0 BUG: 393745 |
Build with with trunk LLVM/Clang become broken yesterday: Clazy/src/checks/level2/old-style-connect.cpp:232:52: error: no member named 'first' in 'clang::CharSourceRange' SourceRange range = SourceRange(expansionRange.first, expansionRange.second); ~~~~~~~~~~~~~~ ^ Clazy/src/checks/level2/old-style-connect.cpp:232:74: error: no member named 'second' in 'clang::CharSourceRange'; did you mean 'setEnd'? SourceRange range = SourceRange(expansionRange.first, expansionRange.second); ^~~~~~ setEnd llvm-svn.src/tools/clang/include/clang/Basic/SourceLocation.h:267:8: note: 'setEnd' declared here void setEnd(SourceLocation e) { Range.setEnd(e); } ^ Clazy/src/checks/level2/old-style-connect.cpp:397:60: error: no member named 'first' in 'clang::CharSourceRange' SourceRange range = SourceRange(expansionRange.first, expansionRange.second); ~~~~~~~~~~~~~~ ^ Clazy/src/checks/level2/old-style-connect.cpp:397:82: error: no member named 'second' in 'clang::CharSourceRange'; did you mean 'setEnd'? SourceRange range = SourceRange(expansionRange.first, expansionRange.second); ^~~~~~ setEnd llvm-svn.src/tools/clang/include/clang/Basic/SourceLocation.h:267:8: note: 'setEnd' declared here void setEnd(SourceLocation e) { Range.setEnd(e); } ^