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

Sean Perry via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 3 08:22:39 PST 2025


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

I'll change the code so I don't use auto here.  I am curious why you say this doesn't follow the coding standards.  I thought it would have (see https://llvm.org/docs/CodingStandards.html#use-auto-type-deduction-to-make-code-more-readable).

I can change the line to:
```cpp
for (const SymbolLabel &Exported : PendingExportedNames.values())
```
or
```cpp
for (const auto &Exported : PendingExportedNames.values())
```

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


More information about the cfe-commits mailing list