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 {
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 * ```
You can’t perform that action at this time.
0 commit comments