Skip to content

Commit beada95

Browse files
committed
CPP: Examples Block.qll.
1 parent e890aba commit beada95

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

cpp/ql/src/semmle/code/cpp/stmts/Block.qll

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ import semmle.code.cpp.stmts.Stmt
44
/**
55
* A C/C++ block statement.
66
*
7-
* For example,
7+
* For example, the block from `{` to `}` in the following code:
88
* ```
9-
* { int a; int b = 1; a = b; }
9+
* {
10+
* int a;
11+
* int b = 1;
12+
* a = b;
13+
* }
1014
* ```
1115
*/
1216
class Block extends Stmt, @stmt_block {

0 commit comments

Comments
 (0)