Skip to content

Commit 723f3b0

Browse files
committed
C++: Address review comments
1 parent 72823e9 commit 723f3b0

File tree

1 file changed

+6
-6
lines changed
  • cpp/ql/lib/semmle/code/cpp/stmts

1 file changed

+6
-6
lines changed

cpp/ql/lib/semmle/code/cpp/stmts/Stmt.qll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,9 @@ class IfStmt extends ConditionalStmt, @stmt_if {
218218
*
219219
* For example, for
220220
* ```
221-
* if (x = y; b) { f(); }
221+
* if (int x = y; b) { f(); }
222222
* ```
223-
* the result is `x = y;`.
223+
* the result is `int x = y;`.
224224
*
225225
* Does not hold if the initialization statement is missing or an empty statement, as in
226226
* ```
@@ -324,9 +324,9 @@ class ConstexprIfStmt extends ConditionalStmt, @stmt_constexpr_if {
324324
*
325325
* For example, for
326326
* ```
327-
* if constexpr (x = y; b) { f(); }
327+
* if constexpr (int x = y; b) { f(); }
328328
* ```
329-
* the result is `x = y;`.
329+
* the result is `int x = y;`.
330330
*
331331
* Does not hold if the initialization statement is missing or an empty statement, as in
332332
* ```
@@ -1517,9 +1517,9 @@ class SwitchStmt extends ConditionalStmt, @stmt_switch {
15171517
*
15181518
* For example, for
15191519
* ```
1520-
* switch (x = y; b) { }
1520+
* switch (int x = y; b) { }
15211521
* ```
1522-
* the result is `x = y;`.
1522+
* the result is `int x = y;`.
15231523
*
15241524
* Does not hold if the initialization statement is missing or an empty statement, as in
15251525
* ```

0 commit comments

Comments
 (0)