[PATCH] D55595: Add missing bugprone checks to clang-tidy plugin
Ivan Donchevskii via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 12 01:40:25 PST 2018
yvvan created this revision.
yvvan added reviewers: JonasToth, alexfh.
Synchronize it with ClangTidyMain
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D55595
Files:
clang-tidy/plugin/ClangTidyPlugin.cpp
Index: clang-tidy/plugin/ClangTidyPlugin.cpp
===================================================================
--- clang-tidy/plugin/ClangTidyPlugin.cpp
+++ clang-tidy/plugin/ClangTidyPlugin.cpp
@@ -94,6 +94,11 @@
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 CERTModule.
extern volatile int CERTModuleAnchorSource;
static int LLVM_ATTRIBUTE_UNUSED CERTModuleAnchorDestination =
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55595.177825.patch
Type: text/x-patch
Size: 714 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181212/cee0a1a0/attachment.bin>
More information about the cfe-commits
mailing list