[PATCH] D48426: [clang-cl] Don't emit dllexport inline functions etc. from pch files (PR37801)
Nico Weber via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 25 05:08:52 PDT 2018
thakis added a comment.
Still looks good, ship it! One more suggestion about additional test coverage (but maybe it's already there and I'm just missing it).
================
Comment at: test/CodeGen/pch-dllexport.cpp:55
+template <typename T> void __declspec(dllexport) explicitInstantiationDefAfterDecl(T) {}
+extern template void explicitInstantiationDefAfterDecl<int>(int);
+
----------------
This has two interesting cases:
1. An explicit instantiation declaration.
2. An explicit instantiation definition.
You have a test for 2, but not for 1, as far as I can tell (?). For 1, the inline function from the pch-obj should be used (which probably already works; if not a FIXME is enough).
https://reviews.llvm.org/D48426
More information about the cfe-commits
mailing list