File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
cpp/ql/lib/semmle/code/cpp/stmts Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -218,9 +218,9 @@ class IfStmt extends ConditionalStmt, @stmt_if {
218
218
*
219
219
* For example, for
220
220
* ```
221
- * if (x = y; b) { f(); }
221
+ * if (int x = y; b) { f(); }
222
222
* ```
223
- * the result is `x = y;`.
223
+ * the result is `int x = y;`.
224
224
*
225
225
* Does not hold if the initialization statement is missing or an empty statement, as in
226
226
* ```
@@ -324,9 +324,9 @@ class ConstexprIfStmt extends ConditionalStmt, @stmt_constexpr_if {
324
324
*
325
325
* For example, for
326
326
* ```
327
- * if constexpr (x = y; b) { f(); }
327
+ * if constexpr (int x = y; b) { f(); }
328
328
* ```
329
- * the result is `x = y;`.
329
+ * the result is `int x = y;`.
330
330
*
331
331
* Does not hold if the initialization statement is missing or an empty statement, as in
332
332
* ```
@@ -1517,9 +1517,9 @@ class SwitchStmt extends ConditionalStmt, @stmt_switch {
1517
1517
*
1518
1518
* For example, for
1519
1519
* ```
1520
- * switch (x = y; b) { }
1520
+ * switch (int x = y; b) { }
1521
1521
* ```
1522
- * the result is `x = y;`.
1522
+ * the result is `int x = y;`.
1523
1523
*
1524
1524
* Does not hold if the initialization statement is missing or an empty statement, as in
1525
1525
* ```
You can’t perform that action at this time.
0 commit comments