Bug 375820

Summary: Build with trunk LLVM/Clang is broken
Product: [Developer tools] clazy Reporter: Eugene Zelenko <eugene.zelenko>
Component: generalAssignee: 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: Version Fixed In:
Sentry Crash Report:

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!