mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
CPP: Resolve remaining comments from the original PR.
This commit is contained in:
@@ -209,9 +209,9 @@ class AssignPointerSubExpr extends AssignOperation, @assignpsubexpr {
|
||||
}
|
||||
|
||||
/**
|
||||
* A C++ variable declaration inside the conditional expression of a `while` or `if`
|
||||
* compound statement. Declaring a variable this way narrows its lifetime and scope
|
||||
* to be strictly the compound statement itself. For example:
|
||||
* A C++ variable declaration inside the conditional expression of a `while`, `if` or
|
||||
* `for` compound statement. Declaring a variable this way narrows its lifetime and
|
||||
* scope to be strictly the compound statement itself. For example:
|
||||
* ```
|
||||
* extern int x, y;
|
||||
* if (bool c = x < y) { do_something_with(c); }
|
||||
|
||||
@@ -1064,7 +1064,7 @@ private Expr getStmtResultExpr(Stmt stmt) {
|
||||
}
|
||||
|
||||
/**
|
||||
* The C++ `this` pointer.
|
||||
* The C++ `this` expression.
|
||||
*/
|
||||
class ThisExpr extends Expr, @thisaccess {
|
||||
override string toString() { result = "this" }
|
||||
|
||||
Reference in New Issue
Block a user