commit | ea2f90c96b4c3f8a87f7254785a0496f37ed2453 | [log] [tgz] |
---|---|---|
author | Aaron Ballman <aaron@aaronballman.com> | Fri Oct 02 13:27:19 2015 +0000 |
committer | Aaron Ballman <aaron@aaronballman.com> | Fri Oct 02 13:27:19 2015 +0000 |
tree | 4ad02c64bcd1adb1b2da3b6829842e8c5725c42a | |
parent | b1a73fa94ddec6019085c668655ca6fc47dff955 [diff] [blame] |
Adding a new clang-tidy module to house CERT-specific checkers, and map existing checkers to CERT secure coding rules and recommendations for both C (https://www.securecoding.cert.org/confluence/display/c/SEI+CERT+C+Coding+Standard) and C++ (https://www.securecoding.cert.org/confluence/pages/viewpage.action?pageId=637). llvm-svn: 249130
diff --git a/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp b/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp index b6e6445..03667fb 100644 --- a/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp +++ b/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
@@ -347,6 +347,11 @@ return 0; } +// This anchor is used to force the linker to link the CERTModule. +extern volatile int CERTModuleAnchorSource; +static int LLVM_ATTRIBUTE_UNUSED CERTModuleAnchorDestination = + CERTModuleAnchorSource; + // This anchor is used to force the linker to link the LLVMModule. extern volatile int LLVMModuleAnchorSource; static int LLVM_ATTRIBUTE_UNUSED LLVMModuleAnchorDestination =