diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2014-07-03 14:12:47 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2014-07-03 14:12:47 +0000 |
commit | 71b982b41f192c1413a2b032ed790fa474f35e17 (patch) | |
tree | d51b546f7d34f6ca70d6e7c2c3717fc3caf169bd | |
parent | 3dd23a337c971fb3b24c76865d56d584e33b45f1 (diff) | |
download | llvm-71b982b41f192c1413a2b032ed790fa474f35e17.zip llvm-71b982b41f192c1413a2b032ed790fa474f35e17.tar.gz llvm-71b982b41f192c1413a2b032ed790fa474f35e17.tar.bz2 |
clang-tidy: Instantiate llvm::Registry<clang::tidy::ClangTidyModule>.
llvm-svn: 212271
-rw-r--r-- | clang-tools-extra/clang-tidy/ClangTidy.cpp | 2 | ||||
-rw-r--r-- | clang-tools-extra/clang-tidy/ClangTidyModuleRegistry.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/clang-tools-extra/clang-tidy/ClangTidy.cpp b/clang-tools-extra/clang-tidy/ClangTidy.cpp index f736640..c9fbcef 100644 --- a/clang-tools-extra/clang-tidy/ClangTidy.cpp +++ b/clang-tools-extra/clang-tidy/ClangTidy.cpp @@ -46,6 +46,8 @@ using namespace clang::driver; using namespace clang::tooling; using namespace llvm; +template class llvm::Registry<clang::tidy::ClangTidyModule>; + namespace clang { namespace tidy { diff --git a/clang-tools-extra/clang-tidy/ClangTidyModuleRegistry.h b/clang-tools-extra/clang-tidy/ClangTidyModuleRegistry.h index d23809f..a6b1128 100644 --- a/clang-tools-extra/clang-tidy/ClangTidyModuleRegistry.h +++ b/clang-tools-extra/clang-tidy/ClangTidyModuleRegistry.h @@ -13,6 +13,8 @@ #include "ClangTidyModule.h" #include "llvm/Support/Registry.h" +extern template class llvm::Registry<clang::tidy::ClangTidyModule>; + namespace clang { namespace tidy { |