[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:39 PDT 2025
================
@@ -627,8 +627,6 @@ buildPreamble(PathRef FileName, CompilerInvocation CI,
return DiagnosticsEngine::Ignored;
switch (Info.getID()) {
case diag::warn_no_newline_eof:
- case diag::warn_cxx98_compat_no_newline_eof:
- case diag::ext_no_newline_eof:
// If the preamble doesn't span the whole file, drop the no newline at
// eof warnings.
----------------
zygoloid wrote:
```suggestion
// eof warning.
```
https://github.com/llvm/llvm-project/pull/131794
More information about the cfe-commits
mailing list