[clang] [Clang] Fix false-positive fallthrough warning (#230802) (PR #234848)
Adinesh Reddy via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 23 02:38:40 PDT 2026
================
@@ -255,6 +255,30 @@ int fallthrough_covered_enums(Enum e) {
// Fallthrough annotations in local classes used to generate "fallthrough
// annotation does not directly precede switch label" warning.
+
+int fallthrough_attributed_labels(int n) {
----------------
Adinesh-Reddy wrote:
I've added tests for [[clang::fallthrough]] and for an ordinary label followed by an attributed case label. I also split the test cases into separate functions
https://github.com/llvm/llvm-project/pull/234848
More information about the cfe-commits
mailing list