[clang] [SystemZ][z/OS] Implement #pragma export (PR #141671)

Sean Perry via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 3 09:03:44 PST 2025


================
@@ -1495,6 +1495,13 @@ void Sema::ActOnEndOfTranslationUnit() {
     Consumer.CompleteExternalDeclaration(D);
   }
 
+  // Visit all pending #pragma export.
+  for (auto &Iter : PendingExportedNames) {
----------------
perry-ca wrote:

no prob.  I would have thought it would have been considered obvious.  I see other examples of auto being used with DenseMap (eg. ExplicitlyMapped in clang/lib/Sema/SemaOpenMP.cpp).

https://github.com/llvm/llvm-project/pull/141671


More information about the cfe-commits mailing list