diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2025-05-01 06:52:24 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-01 06:52:24 -0400 |
commit | 4b3acfb10a6b6388b95682c471bdbf42982be030 (patch) | |
tree | 2ce4be44699e0e48a7125971992bdfdf22f40b80 /clang/unittests/Frontend/CompilerInstanceTest.cpp | |
parent | 9693bf457b8a3ae95735f86e23a94a7946ec540e (diff) | |
download | llvm-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