[llvm] [Support] Add clang tooling generated explicit visibility macros (PR #113097)

Thomas Fransham via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 15 12:55:27 PST 2024


================
@@ -654,7 +655,7 @@ struct OptionValue<cl::boolOrDefault> final
 };
 
 template <>
-struct OptionValue<std::string> final : OptionValueCopy<std::string> {
+struct LLVM_ABI OptionValue<std::string> final : OptionValueCopy<std::string> {
----------------
fsfod wrote:

I think there are only extern template declarations for opt<> specializations, those also the ones that sufferer from MSVC bug i mentioned before where members are not getting exported from a dllexport'ed explicit template definition most likely because there deriving from built-in types like int.

https://github.com/llvm/llvm-project/pull/113097


More information about the llvm-commits mailing list