[clang] [clang-tools-extra] Suppress pedantic diagnostic for a file not ending in EOL (PR #131794)
Richard Smith via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 18 09:04:36 PDT 2025
================
@@ -127,8 +127,10 @@ C2y Feature Support
that ``_Generic`` selection associations may now have ``void`` type, but it
also removes UB with code like ``(void)(void)1;``.
- Implemented `WG14 N3411 <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3411.pdf>`_
- which allows a source file to not end with a newline character. This is still
- reported as a conforming extension in earlier language modes.
+ which allows a source file to not end with a newline character. Note,
+ ``-pedantic`` will no longer diagnose this in either C or C++ modes as an
----------------
zygoloid wrote:
This sounds to me like you're saying that not diagnosing this is an extension. Maybe drop the "as an extension" part?
https://github.com/llvm/llvm-project/pull/131794
More information about the cfe-commits
mailing list