================
@@ -7650,6 +7650,32 @@ 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;
+ }
+ assert((isa<FunctionDecl>(NewD) || isa<VarDecl>(NewD)) &&
----------------
erichkeane wrote:
Move this before 7656 please! Assert is breaking up reading the function a
bit. Actually, might be valuable as the first line of the function as it'll
catch more errors, which is probably beneficial.
https://github.com/llvm/llvm-project/pull/141671
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits