| Summary: | Build with trunk LLVM/Clang is broken | ||
|---|---|---|---|
| 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/67a45cf99a9f84266d4d17f9c2107e0518919b87 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
Git commit 67a45cf99a9f84266d4d17f9c2107e0518919b87 by Sergio Martins. Committed on 31/01/2017 at 22:45. Pushed by smartins into branch 'master'. Fix build with clang 4.0 due to missing include M +2 -0 checkmanager.h https://commits.kde.org/clazy/67a45cf99a9f84266d4d17f9c2107e0518919b87 Thanks Eugene Thank you for quick fix, Sergio! |
I got next errors when built Clazy with trunck LLVM/Clang. I think will be good idea to run Include What You Use to reduce chance of similar issues in future. Clazy/checkmanager.h:116:41: error: member access into incomplete type 'const clang::PreprocessorOptions' return !ci.getPreprocessorOpts().ImplicitPCHInclude.empty(); ^ tools/clang/include/clang/Frontend/CompilerInvocation.h:35:7: note: forward declaration of 'clang::PreprocessorOptions' class PreprocessorOptions; ^ In file included from /grid/cic/nsd-farm2/data/zelenko/LLVM.svn/Clazy/checkbase.cpp:27: Clazy/checkmanager.h:116:41: error: member access into incomplete type 'const clang::PreprocessorOptions' return !ci.getPreprocessorOpts().ImplicitPCHInclude.empty(); ^ tools/clang/include/clang/Frontend/CompilerInvocation.h:35:7: note: forward declaration of 'clang::PreprocessorOptions' class PreprocessorOptions;