[all-commits] [llvm/llvm-project] 449cdf: Suppress pedantic diagnostic for a file not ending...
Aaron Ballman via All-commits
all-commits at lists.llvm.org
Wed Mar 19 04:49:38 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 449cdfacc07bd365d49a637196ce8f8067cf845c
https://github.com/llvm/llvm-project/commit/449cdfacc07bd365d49a637196ce8f8067cf845c
Author: Aaron Ballman <aaron at aaronballman.com>
Date: 2025-03-19 (Wed, 19 Mar 2025)
Changed paths:
M clang-tools-extra/clangd/Preamble.cpp
M clang/docs/ReleaseNotes.rst
M clang/include/clang/Basic/DiagnosticLexKinds.td
M clang/lib/Lex/Lexer.cpp
M clang/test/C/C2y/n3411.c
A clang/test/CXX/drs/cwg787.cpp
R clang/test/Lexer/newline-eof-c++98-compat.cpp
M clang/test/Lexer/newline-eof.c
Log Message:
-----------
Suppress pedantic diagnostic for a file not ending in EOL (#131794)
WG14 added N3411 to the list of papers which apply to older versions of
C in C2y, and WG21 adopted CWG787 as a Defect Report in C++11. So we no
longer should be issuing a pedantic diagnostic about a file which does
not end with a newline character.
We do, however, continue to support -Wnewline-eof as an opt-in
diagnostic.
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