Skip to content

Commit

Permalink
brave-missing-break-in-switch.yaml: pattern-not NOTREACHED_NORETURN
Browse files Browse the repository at this point in the history
  • Loading branch information
thypon authored Jul 17, 2023
1 parent 870282d commit c36cabf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions assets/semgrep_rules/c/brave-missing-break-in-switch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,8 @@ rules:
switch ($VAR) { case $VAL1: ... ABSL_FALLTHROUGH_INTENDED; case $VAL2: ... }
- pattern-not: |
switch ($VAR) { case $VAL1: ABSL_FALLTHROUGH_INTENDED; case $VAL2: ... }
# NOTREACHED_NORETURN
- pattern-not: |
switch ($VAR) { case $VAL1: NOTREACHED_NORETURN(); case $VAL2: ... }
- pattern-not: |
switch ($VAR) { case $VAL1: ... NOTREACHED_NORETURN(); case $VAL2: ... }

0 comments on commit c36cabf

Please sign in to comment.