mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
CPP: Examples Block.qll.
This commit is contained in:
@@ -4,9 +4,13 @@ import semmle.code.cpp.stmts.Stmt
|
||||
/**
|
||||
* A C/C++ block statement.
|
||||
*
|
||||
* For example,
|
||||
* For example, the block from `{` to `}` in the following code:
|
||||
* ```
|
||||
* { int a; int b = 1; a = b; }
|
||||
* {
|
||||
* int a;
|
||||
* int b = 1;
|
||||
* a = b;
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
class Block extends Stmt, @stmt_block {
|
||||
|
||||
Reference in New Issue
Block a user