aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Frontend/CompilerInstanceTest.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2025-05-01 06:52:24 -0400
committerGitHub <noreply@github.com>2025-05-01 06:52:24 -0400
commit4b3acfb10a6b6388b95682c471bdbf42982be030 (patch)
tree2ce4be44699e0e48a7125971992bdfdf22f40b80 /clang/unittests/Frontend/CompilerInstanceTest.cpp
parent9693bf457b8a3ae95735f86e23a94a7946ec540e (diff)
downloadllvm-4b3acfb10a6b6388b95682c471bdbf42982be030.zip
llvm-4b3acfb10a6b6388b95682c471bdbf42982be030.tar.gz
llvm-4b3acfb10a6b6388b95682c471bdbf42982be030.tar.bz2
[C] Add -Wduplicate-decl-specifier to -Wc++-compat (#138012)
The existing diagnostic, already enabled by default in C, will diagnose use of duplicate declaration specifiers (e.g., `const const`). However, the C++ standard claims that is ill-formed, so the diagnostic is now also controlled via -Wc++-compat. Note: Clang treats this as a warning in C++ rather than an error, but GCC does treat this as an error in C++, so the compatibility concerns are minor but do exist.
Diffstat (limited to 'clang/unittests/Frontend/CompilerInstanceTest.cpp')
0 files changed, 0 insertions, 0 deletions