C++: Make implicit this receivers explicit

This commit is contained in:
Kasper Svendsen
2023-05-09 13:15:54 +02:00
parent ffa30284ea
commit c46898cb75
68 changed files with 589 additions and 560 deletions

View File

@@ -284,10 +284,10 @@ deprecated class GVN extends GvnBase {
}
/** Gets a textual representation of this element. */
string toString() { result = exampleExpr().toString() }
string toString() { result = this.exampleExpr().toString() }
/** Gets the primary location of this element. */
Location getLocation() { result = exampleExpr().getLocation() }
Location getLocation() { result = this.exampleExpr().getLocation() }
}
private predicate analyzableIntConst(Expr e) {

View File

@@ -282,10 +282,10 @@ class HashCons extends HCBase {
}
/** Gets a textual representation of this element. */
string toString() { result = exampleExpr().toString() }
string toString() { result = this.exampleExpr().toString() }
/** Gets the primary location of this element. */
Location getLocation() { result = exampleExpr().getLocation() }
Location getLocation() { result = this.exampleExpr().getLocation() }
}
/**