Bug 375820 - Build with trunk LLVM/Clang is broken
Summary: Build with trunk LLVM/Clang is broken
Status: RESOLVED FIXED
Alias: None
Product: clazy
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Sergio Martins
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-31 22:21 UTC by Eugene Zelenko
Modified: 2017-01-31 22:54 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Zelenko 2017-01-31 22:21:14 UTC
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;
Comment 1 Sergio Martins 2017-01-31 22:46:48 UTC
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
Comment 2 Sergio Martins 2017-01-31 22:48:06 UTC
Thanks Eugene
Comment 3 Eugene Zelenko 2017-01-31 22:54:17 UTC
Thank you for quick fix, Sergio!