File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 1+ private import cpp
2+ private import semmle.code.cpp.ir.IR
3+ private import SsaInternals as Ssa
4+
5+ /**
6+ * A property provider that hides all instructions and operands that are not relevant for IR dataflow.
7+ */
8+ class DataFlowRelevantIRPropertyProvider extends IRPropertyProvider {
9+ override predicate shouldPrintOperand ( Operand operand ) { not Ssa:: ignoreOperand ( operand ) }
10+
11+ override predicate shouldPrintInstruction ( Instruction instr ) { not Ssa:: ignoreInstruction ( instr ) }
12+ }
Original file line number Diff line number Diff line change @@ -59,8 +59,4 @@ class LocalFlowPropertyProvider extends IRPropertyProvider {
5959 result = getNodeProperty ( node , key )
6060 )
6161 }
62-
63- override predicate shouldPrintOperand ( Operand operand ) { not Ssa:: ignoreOperand ( operand ) }
64-
65- override predicate shouldPrintInstruction ( Instruction instr ) { not Ssa:: ignoreInstruction ( instr ) }
6662}
You can’t perform that action at this time.
0 commit comments