mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Shared: Add CFG consistency check for scopes with missing entry points
This commit is contained in:
@@ -1387,9 +1387,13 @@ module Make<LocationSig Location, InputSig<Location> Input> {
|
||||
strictcount(sk.getListOrder()) > 1
|
||||
}
|
||||
|
||||
/** Holds if `n` has multiple textual representations. */
|
||||
query predicate multipleToString(Node n, string s) {
|
||||
s = strictconcat(n.toString(), ",") and
|
||||
strictcount(n.toString()) > 1
|
||||
}
|
||||
|
||||
/** Holds if CFG scope `scope` lacks an initial AST node. */
|
||||
query predicate scopeNoFirst(CfgScope scope) { not scopeFirst(scope, _) }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user