diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2015-10-06 13:31:00 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2015-10-06 13:31:00 +0000 |
commit | aaa4080d21ecc6a68221ddea558726950c719b17 (patch) | |
tree | 5d69206b7a5ed9d3c9e7dfe59bf96ca4bab87e13 /clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp | |
parent | 814e5caebcd0ee7346be03bea0aab6221c09ebbe (diff) | |
download | bcm5719-llvm-aaa4080d21ecc6a68221ddea558726950c719b17.tar.gz bcm5719-llvm-aaa4080d21ecc6a68221ddea558726950c719b17.zip |
Add a new module for the C++ Core Guidelines, and the first checker for those guidelines: cppcoreguidelines-pro-type-reinterpret-cast.
Patch by Matthias Gehre!
llvm-svn: 249399
Diffstat (limited to 'clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp')
-rw-r--r-- | clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp b/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp index 03667fb512f..9dc68244a3e 100644 --- a/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp +++ b/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp @@ -357,6 +357,11 @@ extern volatile int LLVMModuleAnchorSource; static int LLVM_ATTRIBUTE_UNUSED LLVMModuleAnchorDestination = LLVMModuleAnchorSource; +// This anchor is used to force the linker to link the CppCoreGuidelinesModule. +extern volatile int CppCoreGuidelinesModuleAnchorSource; +static int LLVM_ATTRIBUTE_UNUSED CppCoreGuidelinesModuleAnchorDestination = + CppCoreGuidelinesModuleAnchorSource; + // This anchor is used to force the linker to link the GoogleModule. extern volatile int GoogleModuleAnchorSource; static int LLVM_ATTRIBUTE_UNUSED GoogleModuleAnchorDestination = |