diff options
| author | Ivan Donchevskii <ivan.donchevskii@qt.io> | 2018-12-10 15:58:50 +0000 |
|---|---|---|
| committer | Ivan Donchevskii <ivan.donchevskii@qt.io> | 2018-12-10 15:58:50 +0000 |
| commit | c5929138f58ee6a4fa779a39dff05d709ac21c60 (patch) | |
| tree | b4ef6e86cf6af580968e3e3289b158107e7f23f9 /clang/tools/libclang/CIndex.cpp | |
| parent | 872ed41a1e378b618e7ba26379f1c127774d0abd (diff) | |
| download | bcm5719-llvm-c5929138f58ee6a4fa779a39dff05d709ac21c60.tar.gz bcm5719-llvm-c5929138f58ee6a4fa779a39dff05d709ac21c60.zip | |
[libclang] Revert removal of tidy plugin support from libclang introduced in r347496
Differential Revision: https://reviews.llvm.org/D55415
llvm-svn: 348764
Diffstat (limited to 'clang/tools/libclang/CIndex.cpp')
| -rw-r--r-- | clang/tools/libclang/CIndex.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp index 03208bb5a4c..e9bc3939719 100644 --- a/clang/tools/libclang/CIndex.cpp +++ b/clang/tools/libclang/CIndex.cpp @@ -8938,3 +8938,16 @@ cxindex::Logger::~Logger() { OS << "--------------------------------------------------\n"; } } + +#ifdef CLANG_TOOL_EXTRA_BUILD +// This anchor is used to force the linker to link the clang-tidy plugin. +extern volatile int ClangTidyPluginAnchorSource; +static int LLVM_ATTRIBUTE_UNUSED ClangTidyPluginAnchorDestination = + ClangTidyPluginAnchorSource; + +// This anchor is used to force the linker to link the clang-include-fixer +// plugin. +extern volatile int ClangIncludeFixerPluginAnchorSource; +static int LLVM_ATTRIBUTE_UNUSED ClangIncludeFixerPluginAnchorDestination = + ClangIncludeFixerPluginAnchorSource; +#endif |

