[all-commits] [llvm/llvm-project] 15f7e0: [C23] Disable diagnostic on struct defn in prototy...
Aaron Ballman via All-commits
all-commits at lists.llvm.org
Mon May 5 07:40:27 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 15f7e029403a61412bc8c397c9205f7a930055dc
https://github.com/llvm/llvm-project/commit/15f7e029403a61412bc8c397c9205f7a930055dc
Author: Aaron Ballman <aaron at aaronballman.com>
Date: 2025-05-05 (Mon, 05 May 2025)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Sema/SemaDecl.cpp
M clang/test/C/C23/n3030.c
M clang/test/C/C23/n3037.c
M clang/test/C/drs/dr0xx.c
M clang/test/C/drs/dr1xx.c
A clang/test/Sema/c23-decl-in-prototype.c
M clang/test/Sema/decl-in-prototype.c
M clang/test/Sema/enum.c
Log Message:
-----------
[C23] Disable diagnostic on struct defn in prototype (#138516)
Thanks to changes to type compatibility rules via WG14 N3007, these
functions can now be called with a compatible type even within the same
TU, which makes the -Wvisibility diagnostic too chatty to have on by
default.
So in C23 mode, -Wvisibility will only diagnose an incomplete tag type
declared in a function prototype. If the tag is defined in the
prototype, the diagnostic is silenced.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list