Skip to content

Commit 69e085d

Browse files
committed
C++: Add getDebugString predicate and use it in ValueNumberPropertyProvider
1 parent ef89e3b commit 69e085d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cpp/ql/src/semmle/code/cpp/ir/internal/ASTValueNumbering.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ class GVN extends TValueNumber {
6161

6262
final string toString() { result = "GVN" }
6363

64+
final string getDebugString() { result = strictconcat(getAnExpr().toString(), ", ") }
65+
6466
final Location getLocation() {
6567
result =
6668
min(Location l |

0 commit comments

Comments
 (0)