diff options
author | Ivan Donchevskii <ivan.donchevskii@qt.io> | 2018-04-24 13:47:44 +0200 |
---|---|---|
committer | Ivan Donchevskii <ivan.donchevskii@qt.io> | 2018-04-26 09:20:30 +0000 |
commit | bab72eba78aebacb5f763149f628133b032f9f39 (patch) | |
tree | 5cc3f658ea5564789cadc2811ee275f8b2fe540d | |
parent | 47f19b1a8800c914b11560b86d92d25b5fe47e80 (diff) |
Enable more Clang-Tidy checks in pluginrelease_60-based
Some of the checks were activated in the Clang-Tidy
standalone application but were not in the plugin.
Change-Id: I6b6fa01093ae1096c24bf1c47405a5d8480f3e86
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
-rw-r--r-- | clang-tidy/plugin/CMakeLists.txt | 3 | ||||
-rw-r--r-- | clang-tidy/plugin/ClangTidyPlugin.cpp | 27 |
2 files changed, 29 insertions, 1 deletions
diff --git a/clang-tidy/plugin/CMakeLists.txt b/clang-tidy/plugin/CMakeLists.txt index 995c0865..3c11f051 100644 --- a/clang-tidy/plugin/CMakeLists.txt +++ b/clang-tidy/plugin/CMakeLists.txt @@ -10,9 +10,12 @@ add_clang_library(clangTidyPlugin clangTidy clangTidyAndroidModule clangTidyBoostModule + clangTidyBugproneModule clangTidyCERTModule clangTidyCppCoreGuidelinesModule + clangTidyFuchsiaModule clangTidyGoogleModule + clangTidyHICPPModule clangTidyLLVMModule clangTidyMiscModule clangTidyModernizeModule diff --git a/clang-tidy/plugin/ClangTidyPlugin.cpp b/clang-tidy/plugin/ClangTidyPlugin.cpp index 25c13c76..33169479 100644 --- a/clang-tidy/plugin/ClangTidyPlugin.cpp +++ b/clang-tidy/plugin/ClangTidyPlugin.cpp @@ -83,6 +83,16 @@ extern volatile int CERTModuleAnchorSource; static int LLVM_ATTRIBUTE_UNUSED CERTModuleAnchorDestination = CERTModuleAnchorSource; +// This anchor is used to force the linker to link the BoostModule. +extern volatile int BoostModuleAnchorSource; +static int LLVM_ATTRIBUTE_UNUSED BoostModuleAnchorDestination = + BoostModuleAnchorSource; + +// This anchor is used to force the linker to link the BugproneModule. +extern volatile int BugproneModuleAnchorSource; +static int LLVM_ATTRIBUTE_UNUSED BugproneModuleAnchorDestination = + BugproneModuleAnchorSource; + // This anchor is used to force the linker to link the LLVMModule. extern volatile int LLVMModuleAnchorSource; static int LLVM_ATTRIBUTE_UNUSED LLVMModuleAnchorDestination = @@ -94,10 +104,20 @@ static int LLVM_ATTRIBUTE_UNUSED CppCoreGuidelinesModuleAnchorDestination = CppCoreGuidelinesModuleAnchorSource; // This anchor is used to force the linker to link the GoogleModule. +extern volatile int FuchsiaModuleAnchorSource; +static int LLVM_ATTRIBUTE_UNUSED FuchsiaModuleAnchorDestination = + FuchsiaModuleAnchorSource; + +// This anchor is used to force the linker to link the GoogleModule. extern volatile int GoogleModuleAnchorSource; static int LLVM_ATTRIBUTE_UNUSED GoogleModuleAnchorDestination = GoogleModuleAnchorSource; +// This anchor is used to force the linker to link the AndroidModule. +extern volatile int AndroidModuleAnchorSource; +static int LLVM_ATTRIBUTE_UNUSED AndroidModuleAnchorDestination = + AndroidModuleAnchorSource; + // This anchor is used to force the linker to link the MiscModule. extern volatile int MiscModuleAnchorSource; static int LLVM_ATTRIBUTE_UNUSED MiscModuleAnchorDestination = @@ -111,7 +131,7 @@ static int LLVM_ATTRIBUTE_UNUSED ModernizeModuleAnchorDestination = // This anchor is used to force the linker to link the MPIModule. extern volatile int MPIModuleAnchorSource; static int LLVM_ATTRIBUTE_UNUSED MPIModuleAnchorDestination = - MPIModuleAnchorSource; + MPIModuleAnchorSource; // This anchor is used to force the linker to link the PerformanceModule. extern volatile int PerformanceModuleAnchorSource; @@ -128,5 +148,10 @@ extern volatile int ObjCModuleAnchorSource; static int LLVM_ATTRIBUTE_UNUSED ObjCModuleAnchorDestination = ObjCModuleAnchorSource; +// This anchor is used to force the linker to link the HICPPModule. +extern volatile int HICPPModuleAnchorSource; +static int LLVM_ATTRIBUTE_UNUSED HICPPModuleAnchorDestination = + HICPPModuleAnchorSource; + } // namespace tidy } // namespace clang |