llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang-analysis Author: Tomohiro Kashiwada (kikairoya) <details> <summary>Changes</summary> This patch adds missing explicit template instantiation declaration/definition of `llvm::Registry<clang::ssaf::JSONFormat::FormatInfo>` introduced in #<!-- -->180021 . --- Full diff: https://github.com/llvm/llvm-project/pull/181806.diff 2 Files Affected: - (modified) clang/include/clang/Analysis/Scalable/Serialization/JSONFormat.h (+5) - (modified) clang/lib/Analysis/Scalable/Serialization/JSONFormat.cpp (+4) ``````````diff diff --git a/clang/include/clang/Analysis/Scalable/Serialization/JSONFormat.h b/clang/include/clang/Analysis/Scalable/Serialization/JSONFormat.h index c10650c2133e7..bc1a84ae3b929 100644 --- a/clang/include/clang/Analysis/Scalable/Serialization/JSONFormat.h +++ b/clang/include/clang/Analysis/Scalable/Serialization/JSONFormat.h @@ -14,8 +14,10 @@ #define CLANG_ANALYSIS_SCALABLE_SERIALIZATION_JSONFORMAT_H #include "clang/Analysis/Scalable/Serialization/SerializationFormat.h" +#include "clang/Support/Compiler.h" #include "llvm/ADT/STLFunctionalExtras.h" #include "llvm/Support/JSON.h" +#include "llvm/Support/Registry.h" namespace clang::ssaf { @@ -125,4 +127,7 @@ class JSONFormat final : public SerializationFormat { } // namespace clang::ssaf +extern template class CLANG_TEMPLATE_ABI + llvm::Registry<clang::ssaf::JSONFormat::FormatInfo>; + #endif // CLANG_ANALYSIS_SCALABLE_SERIALIZATION_JSONFORMAT_H diff --git a/clang/lib/Analysis/Scalable/Serialization/JSONFormat.cpp b/clang/lib/Analysis/Scalable/Serialization/JSONFormat.cpp index 6f7de45e863d1..fb5cd300258e8 100644 --- a/clang/lib/Analysis/Scalable/Serialization/JSONFormat.cpp +++ b/clang/lib/Analysis/Scalable/Serialization/JSONFormat.cpp @@ -1,5 +1,6 @@ #include "clang/Analysis/Scalable/Serialization/JSONFormat.h" #include "clang/Analysis/Scalable/TUSummary/TUSummary.h" +#include "clang/Support/Compiler.h" #include "llvm/ADT/StringExtras.h" #include "llvm/Support/FileSystem.h" @@ -19,6 +20,9 @@ using Value = llvm::json::Value; // ErrorBuilder - Fluent API for constructing contextual errors. //---------------------------------------------------------------------------- +template class CLANG_EXPORT_TEMPLATE + llvm::Registry<clang::ssaf::JSONFormat::FormatInfo>; + namespace { class ErrorBuilder { `````````` </details> https://github.com/llvm/llvm-project/pull/181806 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
