[clang-tidy] Share the forced linking code between clang-tidy tool and plugin
authorIvan Donchevskii <ivan.donchevskii@qt.io>
Fri, 14 Dec 2018 07:29:06 +0000 (07:29 +0000)
committerIvan Donchevskii <ivan.donchevskii@qt.io>
Fri, 14 Dec 2018 07:29:06 +0000 (07:29 +0000)
commit37512e58baf9076eca0f8f762213eaa8752cfddf
treec9595207d3b4e20cf01d90533c8bbb3319b22111
parent0c02306dbd1689c4c6b3be9e119935a7567ef5fc
[clang-tidy] Share the forced linking code between clang-tidy tool and plugin

Extract code that forces linking to the separate header and include it in both plugin and standalone tool.
Try 2: missing header guard and "clang/Config/config.h" are added to the new header.

Differential Revision: https://reviews.llvm.org/D55595

llvm-svn: 349131
clang-tools-extra/clang-tidy/ClangTidyForceLinker.h [new file with mode: 0644]
clang-tools-extra/clang-tidy/plugin/ClangTidyPlugin.cpp
clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp