mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
C++: Always show the right-hand side of assignment in paths.
This commit is contained in:
@@ -27,4 +27,6 @@ module CppDataFlow implements InputSig<Location> {
|
||||
predicate mayBenefitFromCallContext = Private::mayBenefitFromCallContext/1;
|
||||
|
||||
predicate viableImplInCallContext = Private::viableImplInCallContext/2;
|
||||
|
||||
predicate neverSkipInPathGraph = Private::neverSkipInPathGraph/1;
|
||||
}
|
||||
|
||||
@@ -1009,6 +1009,11 @@ predicate nodeIsHidden(Node n) {
|
||||
n instanceof InitialGlobalValue
|
||||
}
|
||||
|
||||
predicate neverSkipInPathGraph(Node n) {
|
||||
// Always show the right-hand side of assignments in the path graph
|
||||
nodeHasOperand(n, any(StoreInstruction store).getSourceValueOperand(), _)
|
||||
}
|
||||
|
||||
class LambdaCallKind = Unit;
|
||||
|
||||
/** Holds if `creation` is an expression that creates a lambda of kind `kind` for `c`. */
|
||||
|
||||
Reference in New Issue
Block a user