CWG2635 prohibits adding a constraint to a structured as a defect
report. This patch implements that restriction.
Details
Details
- Reviewers
aaron.ballman jdoerfert - Group Reviewers
Restricted Project - Commits
- rG07008a8df57f: CWG2635: Disallow constrained structured bindings.
Diff Detail
Diff Detail
Event Timeline
Comment Actions
I would normally not really need a review here, but I did some stuff with the fixit that I'm not sure about/not sure how to test, so I was hoping someone could take a second look
Comment Actions
The changes look correct to me. The way to test the fix-it behavior is to model after one of the tests in https://github.com/llvm/llvm-project/tree/main/clang/test/FixIt (there is -fdiagnostics-parseable-fixits and friends for this purpose).
clang/include/clang/Basic/DiagnosticSemaKinds.td | ||
---|---|---|
495–496 | I think clang-format butchered your formatting, you should use the more typical style. | |
clang/lib/Sema/SemaDeclCXX.cpp | ||
763 |
I think clang-format butchered your formatting, you should use the more typical style.