================
@@ -7637,6 +7637,29 @@ static void emitReadOnlyPlacementAttrWarning(Sema &S,
const VarDecl *VD) {
}
}
+void Sema::ProcessPragmaExport(DeclaratorDecl *NewD) {
+ if (PendingExportedNames.empty())
+ return;
+ if (FunctionDecl *FD = dyn_cast<FunctionDecl>(NewD)) {
+ if (getLangOpts().CPlusPlus && !FD->isExternC())
+ return;
+ }
+ IdentifierInfo *IdentName = NewD->getIdentifier();
----------------
erichkeane wrote:
Can this result in non-functions here? I wonder if all of this should be in
the above `if`?
https://github.com/llvm/llvm-project/pull/141671
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits