[all-commits] [llvm/llvm-project] 604e4a: [clang] Non-trivial fixes in C++ DR tests (#179813)
Vlad Serebrennikov via All-commits
all-commits at lists.llvm.org
Tue Feb 10 13:09:43 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 604e4adef0f09fec00a618f003d3a8108f4c576d
https://github.com/llvm/llvm-project/commit/604e4adef0f09fec00a618f003d3a8108f4c576d
Author: Vlad Serebrennikov <serebrennikov.vladislav at gmail.com>
Date: 2026-02-10 (Tue, 10 Feb 2026)
Changed paths:
M clang/test/CXX/drs/cwg0xx.cpp
M clang/test/CXX/drs/cwg10xx.cpp
M clang/test/CXX/drs/cwg13xx.cpp
M clang/test/CXX/drs/cwg15xx.cpp
M clang/test/CXX/drs/cwg16xx.cpp
A clang/test/CXX/drs/cwg1736.cpp
M clang/test/CXX/drs/cwg17xx.cpp
M clang/test/CXX/drs/cwg18xx.cpp
M clang/test/CXX/drs/cwg1xx.cpp
A clang/test/CXX/drs/cwg2026.cpp
M clang/test/CXX/drs/cwg20xx.cpp
A clang/test/CXX/drs/cwg2406.cpp
M clang/test/CXX/drs/cwg24xx.cpp
M clang/test/CXX/drs/cwg25xx.cpp
A clang/test/CXX/drs/cwg2881.cpp
M clang/test/CXX/drs/cwg28xx.cpp
M clang/test/CXX/drs/cwg2xx.cpp
A clang/test/CXX/drs/cwg329.cpp
A clang/test/CXX/drs/cwg390.cpp
M clang/test/CXX/drs/cwg3xx.cpp
M clang/test/CXX/drs/cwg4xx.cpp
M clang/test/CXX/drs/cwg5xx.cpp
M clang/test/CXX/drs/cwg6xx.cpp
M clang/test/CXX/drs/cwg7xx.cpp
A clang/test/CXX/drs/cwg98.cpp
M clang/test/CXX/drs/cwg9xx.cpp
Log Message:
-----------
[clang] Non-trivial fixes in C++ DR tests (#179813)
This is a follow-up to #179674, which applies various fixes across C++
DR tests uncovered by `-verify-directives` (#179835
).
Changes here serve double duty. First, they fix actual problems found by
`-verify-directives`, because I've been manually enforcing those rules
manually for quite a while. Second, they show typical problems and
possible solutions when you opt-in a test to use `-verify-directives`.
This PR focuses on interesting cases, as partial diagnostic matches,
which are trivial to fix, are fixed in boring #179674
Changes include:
1. Getting rid of instantiations at the end of TU that emit diagnostics:
either trigger them earlier, or move them to a separate file
2. Reordering of `expected-error` and `expected-note` to match the order
in which corresponding diagnsotics are emitted.
3. Eliminating leftover partial matches of diagnostic text
4. Removing some extension warnings, because C++ DR tests are not
interested in features backported to older language modes.
5. Fix for a hilarious case of CWG413 test, which was checking for a
note from a typo correction that happened in another test.
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