Direct continuation of https://reviews.llvm.org/D133887
Details
- Reviewers
aaron.ballman cor3ntin - Group Reviewers
Restricted Project - Commits
- rG3285f9a2392f: [Clang] Support case and default labels at end of compound statement
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/include/clang/Basic/DiagnosticParseKinds.td | ||
---|---|---|
298–299 | This is not an error anymore | |
clang/lib/Parse/ParseStmt.cpp | ||
932–940 | We have copy-pasted this piece of code in 3 places (simple label, case label, default label). Does it make sense to have a method for label diags? | |
clang/test/Parser/c2x-label.c | ||
12–30 | I feel like we may be having redundant tests, because Parser/c2x-label.c and C2x/n2508.c test the same things... |
clang/lib/Parse/ParseStmt.cpp | ||
---|---|---|
932–940 | I think a helper function to diagnose this would not be a bad thing. | |
clang/test/Parser/c2x-label.c | ||
12–30 | Yup, we'll definitely have redundancy in the tests -- the tests under the C directory are for (eventually) automatically filling out: https://clang.llvm.org/c_status.html instead of relying on folks to manually modify the HTML every time. So they're mostly "do the examples from the paper work" kind of tests, whereas the Parser/Sema/etc tests are going to test a LOT more edge cases. |
This is not an error anymore