Skip to content

Commit

Permalink
[[fallthrough]];
Browse files Browse the repository at this point in the history
Not fully supported by semgrep, so cannot test fully.
  • Loading branch information
bcaller committed Sep 27, 2023
1 parent 7ae0394 commit 439c415
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,5 @@ rules:
switch ($VAR) { case $VAL1: NOTREACHED_NORETURN(); case $VAL2: ... }
- pattern-not: |
switch ($VAR) { case $VAL1: ... NOTREACHED_NORETURN(); case $VAL2: ... }
# [[fallthrough]];
- pattern-not-regex: '\[\[fallthrough\]\];'

0 comments on commit 439c415

Please sign in to comment.