[clang] [Clang] strengthen checks for 'main' function to meet [basic.start.main] p3 requirements (PR #101853)

via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 6 08:47:20 PDT 2024


================
@@ -7353,6 +7353,15 @@ void emitReadOnlyPlacementAttrWarning(Sema &S, const VarDecl *VD) {
   }
 }
 
+// Checks if VD is declared at global scope or with C language linkage
----------------
Sirraide wrote:

```suggestion
// Checks if VD is declared at global scope or with C language linkage.
```
Extremely minor nit.

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


More information about the cfe-commits mailing list