Merge pull request #12043 from jketema/subpaths

C++: Fix missing subpaths when displaying dataflow paths
This commit is contained in:
Jeroen Ketema
2023-02-01 09:17:16 +01:00
committed by GitHub
6 changed files with 72 additions and 20 deletions

View File

@@ -692,7 +692,11 @@ class Unit extends TUnit {
}
/** Holds if `n` should be hidden from path explanations. */
predicate nodeIsHidden(Node n) { n instanceof OperandNode and not n instanceof ArgumentNode }
predicate nodeIsHidden(Node n) {
n instanceof OperandNode and
not n instanceof ArgumentNode and
not n.asOperand() instanceof StoreValueOperand
}
class LambdaCallKind = Unit;