mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
C#: Disable FinallySplit, BooleanSplit, and LoopSplit
This commit is contained in:
@@ -40,14 +40,16 @@ private module Cached {
|
||||
success in [false, true]
|
||||
} or
|
||||
TFinallySplit(FinallySplitting::FinallySplitType type, int nestLevel) {
|
||||
nestLevel = any(Statements::TryStmtTree t).nestLevel()
|
||||
nestLevel = any(Statements::TryStmtTree t).nestLevel() and
|
||||
none()
|
||||
} or
|
||||
TExceptionHandlerSplit(ExceptionClass ec) or
|
||||
TBooleanSplit(BooleanSplitting::BooleanSplitSubKind kind, boolean branch) {
|
||||
kind.startsSplit(_) and
|
||||
branch in [false, true]
|
||||
branch in [false, true] and
|
||||
none()
|
||||
} or
|
||||
TLoopSplit(LoopSplitting::AnalyzableLoopStmt loop)
|
||||
TLoopSplit(LoopSplitting::AnalyzableLoopStmt loop) { none() }
|
||||
}
|
||||
|
||||
import Cached
|
||||
|
||||
Reference in New Issue
Block a user