[clang] [Clang] Apply exclude_from_explicit_instantiation to dllimport/dllexport (PR #168171)
Tomohiro Kashiwada via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 6 02:25:52 PST 2026
================
@@ -6592,6 +6592,11 @@ void Sema::checkClassLevelDLLAttribute(CXXRecordDecl *Class) {
// seem to be true in practice?
for (Decl *Member : Class->decls()) {
+ if ((TSK == TSK_ExplicitInstantiationDeclaration ||
+ TSK == TSK_ExplicitInstantiationDefinition) &&
----------------
kikairoya wrote:
I'm not sure if it's desirable for this attribute to affect non-template entities.
At least, the warnings need to be adjusted so I'll submit a new PR later.
https://github.com/llvm/llvm-project/pull/168171
More information about the cfe-commits
mailing list