diff options
author | Ivan Donchevskii <ivan.donchevskii@qt.io> | 2017-10-23 16:36:08 +0100 |
---|---|---|
committer | Sergio Martins <iamsergio@gmail.com> | 2017-10-23 16:38:13 +0100 |
commit | a93bddccbd0ad20a82bd2f6c7e899519fc6cacfd (patch) | |
tree | ee60948d2f055466e0e7b242c318e23d08f1e671 /src | |
parent | 27114916412ad20321cc63af5651a301455bf79a (diff) |
Add flag to change build of ClangLazy from shared to static
Differential Revision: https://phabricator.kde.org/D8377
Diffstat (limited to 'src')
-rw-r--r-- | src/Clazy.cpp | 2 | ||||
-rw-r--r-- | src/PreProcessorVisitor.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/Clazy.cpp b/src/Clazy.cpp index 6b9ecc94..037316f9 100644 --- a/src/Clazy.cpp +++ b/src/Clazy.cpp @@ -384,5 +384,7 @@ unique_ptr<ASTConsumer> ClazyStandaloneASTAction::CreateASTConsumer(CompilerInst return unique_ptr<ASTConsumer>(astConsumer); } +volatile int ClazyPluginAnchorSource = 0; + static FrontendPluginRegistry::Add<ClazyASTAction> X("clang-lazy", "clang lazy plugin"); diff --git a/src/PreProcessorVisitor.h b/src/PreProcessorVisitor.h index 7d4c85ce..77c014ce 100644 --- a/src/PreProcessorVisitor.h +++ b/src/PreProcessorVisitor.h @@ -42,6 +42,8 @@ namespace clang { class MacroArgs; } +using uint = unsigned; + class PreProcessorVisitor : public clang::PPCallbacks { PreProcessorVisitor(const PreProcessorVisitor &) = delete; |