Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a5d2fbd

Browse files
committed
CPP: Resolve remaining comments from the original PR.
1 parent 5cc92b7 commit a5d2fbd

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

cpp/ql/src/semmle/code/cpp/exprs/Assignment.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,9 @@ class AssignPointerSubExpr extends AssignOperation, @assignpsubexpr {
209209
}
210210

211211
/**
212-
* A C++ variable declaration inside the conditional expression of a `while` or `if`
213-
* compound statement. Declaring a variable this way narrows its lifetime and scope
214-
* to be strictly the compound statement itself. For example:
212+
* A C++ variable declaration inside the conditional expression of a `while`, `if` or
213+
* `for` compound statement. Declaring a variable this way narrows its lifetime and
214+
* scope to be strictly the compound statement itself. For example:
215215
* ```
216216
* extern int x, y;
217217
* if (bool c = x < y) { do_something_with(c); }

cpp/ql/src/semmle/code/cpp/exprs/Expr.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@ private Expr getStmtResultExpr(Stmt stmt) {
10641064
}
10651065

10661066
/**
1067-
* The C++ `this` pointer.
1067+
* The C++ `this` expression.
10681068
*/
10691069
class ThisExpr extends Expr, @thisaccess {
10701070
override string toString() { result = "this" }

0 commit comments

Comments
 (0)