Skip to content

Commit ee07c70

Browse files
committed
CPP: More review suggestions.
1 parent 8134d80 commit ee07c70

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cpp/ql/src/semmle/code/cpp/Variable.qll

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,11 +304,12 @@ class ParameterDeclarationEntry extends VariableDeclarationEntry {
304304

305305
/**
306306
* A C/C++ variable with block scope [N4140 3.3.3]. In other words, a local
307-
* variable or a function parameter. For example, the variables `a` and `b` in
308-
* the following code:
307+
* variable or a function parameter. For example, the variables `a`, `b` and
308+
* `c` in the following code:
309309
* ```
310310
* void myFunction(int a) {
311311
* int b;
312+
* static int c;
312313
* }
313314
* ```
314315
*
@@ -332,10 +333,11 @@ deprecated class StackVariable extends Variable {
332333
/**
333334
* A C/C++ local variable. In other words, any variable that has block
334335
* scope [N4140 3.3.3], but is not a parameter of a `Function` or `CatchBlock`.
335-
* For example the variable `b` in the following code:
336+
* For example the variables `b` and `c` in the following code:
336337
* ```
337338
* void myFunction(int a) {
338339
* int b;
340+
* static int c;
339341
* }
340342
* ```
341343
*

0 commit comments

Comments
 (0)