Account for pattern-cases in more places

This commit is contained in:
Chris Smowton
2023-10-30 12:19:15 +00:00
parent 2b16121638
commit 9a450b09be
2 changed files with 7 additions and 5 deletions

View File

@@ -17,8 +17,7 @@ import Common
from SwitchStmt s, Stmt c
where
c = s.getACase() and
not c.(ControlFlowNode).getASuccessor() instanceof ConstCase and
not c.(ControlFlowNode).getASuccessor() instanceof DefaultCase and
not c.(ControlFlowNode).getASuccessor() instanceof SwitchCase and
not s.(Annotatable).suppressesWarningsAbout("fallthrough") and
mayDropThroughWithoutComment(s, c)
select c,