mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
Account for pattern-cases in more places
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user