mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
C++: Make FlowVar::toString not use Expr::toString
The `FlowVar::toString` predicate is purely a debugging aid, but unfortunately it has to be `cached` because it's in a `cached` class. Before this commit, it caused `Expr::toString` to be evaluated in full.
This commit is contained in:
@@ -269,7 +269,7 @@ module FlowVar_internal {
|
||||
override string toString() {
|
||||
exists(Expr e |
|
||||
this.definedByExpr(e, _) and
|
||||
result = v +" := "+ e
|
||||
result = "assignment to "+ v
|
||||
)
|
||||
or
|
||||
this.definedByInitialValue(_) and
|
||||
@@ -277,7 +277,7 @@ module FlowVar_internal {
|
||||
or
|
||||
exists(Expr arg |
|
||||
this.definedByReference(arg) and
|
||||
result = "ref def: "+ arg
|
||||
result = "definition by reference of "+ v
|
||||
)
|
||||
or
|
||||
// impossible case
|
||||
|
||||
Reference in New Issue
Block a user