[clang-tools-extra] r212271 - clang-tidy: Instantiate llvm::Registry<clang::tidy::ClangTidyModule>.

NAKAMURA Takumi geek4civic at gmail.com
Thu Jul 3 07:12:47 PDT 2014


Author: chapuni
Date: Thu Jul  3 09:12:47 2014
New Revision: 212271

URL: http://llvm.org/viewvc/llvm-project?rev=212271&view=rev
Log:
clang-tidy: Instantiate llvm::Registry<clang::tidy::ClangTidyModule>.

Modified:
    clang-tools-extra/trunk/clang-tidy/ClangTidy.cpp
    clang-tools-extra/trunk/clang-tidy/ClangTidyModuleRegistry.h

Modified: clang-tools-extra/trunk/clang-tidy/ClangTidy.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/ClangTidy.cpp?rev=212271&r1=212270&r2=212271&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/ClangTidy.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/ClangTidy.cpp Thu Jul  3 09:12:47 2014
@@ -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 {
 

Modified: clang-tools-extra/trunk/clang-tidy/ClangTidyModuleRegistry.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/ClangTidyModuleRegistry.h?rev=212271&r1=212270&r2=212271&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/ClangTidyModuleRegistry.h (original)
+++ clang-tools-extra/trunk/clang-tidy/ClangTidyModuleRegistry.h Thu Jul  3 09:12:47 2014
@@ -13,6 +13,8 @@
 #include "ClangTidyModule.h"
 #include "llvm/Support/Registry.h"
 
+extern template class llvm::Registry<clang::tidy::ClangTidyModule>;
+
 namespace clang {
 namespace tidy {
 





More information about the cfe-commits mailing list