We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86bd0c0 commit f223c95Copy full SHA for f223c95
cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowPrivate.qll
@@ -35,6 +35,17 @@ private module Cached {
35
not Ssa::ignoreOperand(op) and exists(Ssa::getIRRepresentationOfOperand(op))
36
}
37
38
+ cached
39
+ string toStringCached(Node n) {
40
+ result = toExprString(n)
41
+ or
42
+ not exists(toExprString(n)) and
43
+ result = n.toStringImpl()
44
+ }
45
+
46
47
+ Location getLocationCached(Node n) { result = n.getLocationImpl() }
48
49
cached
50
newtype TContentApprox =
51
TFieldApproxContent(string s) { fieldHasApproxName(_, s) } or
0 commit comments