[clang] [Clang] strengthen checks for 'main' function to meet [basic.start.main] p2 requirements (PR #101853)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 5 02:56:20 PDT 2024
================
@@ -145,6 +145,8 @@ Improvements to Clang's diagnostics
- -Wdangling-assignment-gsl is enabled by default.
+- Clang now diagnoses the use of `main` in `extern` context as invalid according to [basic.start.main] p2. Fixes #GH101512.
----------------
Sirraide wrote:
```suggestion
- Clang now diagnoses the use of `main` in an `extern "C"` context as invalid according to [basic.start.main] p2. Fixes #GH101512.
```
https://github.com/llvm/llvm-project/pull/101853
More information about the cfe-commits
mailing list