[clang] [libcxx] [Cygwin][MinGW] Internal class in explicitly-instantiation-declarated template should be instantiated (PR #140145)
via cfe-commits
cfe-commits at lists.llvm.org
Fri May 16 03:16:26 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions cpp,h -- clang/lib/Sema/SemaTemplateInstantiate.cpp clang/test/CodeGenCXX/mingw-template-dllexport.cpp libcxx/include/__ostream/basic_ostream.h libcxx/src/ios.instantiations.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/src/ios.instantiations.cpp b/libcxx/src/ios.instantiations.cpp
index 6f58a2c75..230eb5892 100644
--- a/libcxx/src/ios.instantiations.cpp
+++ b/libcxx/src/ios.instantiations.cpp
@@ -31,10 +31,10 @@ template class _LIBCPP_CLASS_TEMPLATE_INSTANTIATION_VIS basic_iostream<char>;
template class _LIBCPP_CLASS_TEMPLATE_INSTANTIATION_VIS basic_ios<wchar_t>;
template class _LIBCPP_CLASS_TEMPLATE_INSTANTIATION_VIS basic_streambuf<wchar_t>;
template class _LIBCPP_CLASS_TEMPLATE_INSTANTIATION_VIS basic_istream<wchar_t>;
-#ifdef _MSC_VER
+# ifdef _MSC_VER
template _LIBCPP_EXPORTED_FROM_ABI basic_ostream<wchar_t>::sentry::sentry(basic_ostream<wchar_t>& __os);
template _LIBCPP_EXPORTED_FROM_ABI basic_ostream<wchar_t>::sentry::~sentry();
-#endif
+# endif
template class _LIBCPP_CLASS_TEMPLATE_INSTANTIATION_VIS basic_ostream<wchar_t>;
#endif
``````````
</details>
https://github.com/llvm/llvm-project/pull/140145
More information about the cfe-commits
mailing list