Skip to content

Commit ca0517b

Browse files
committed
C++: LocalVariable docs
1 parent 8f9849b commit ca0517b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,11 @@ deprecated class StackVariable extends Variable {
283283

284284
/**
285285
* A C/C++ local variable. In other words, any variable that has block
286-
* scope [N4140 3.3.3], but is not a function parameter.
286+
* scope [N4140 3.3.3], but is not a parameter of a `Function` or `CatchBlock`.
287+
* Local variables can be static; use the `isStatic` member predicate to detect
288+
* those.
289+
*
290+
* A local variable can be declared by a `DeclStmt` or a `ConditionDeclExpr`.
287291
*/
288292
class LocalVariable extends LocalScopeVariable, @localvariable {
289293
override string getName() { localvariables(underlyingElement(this),_,result) }

0 commit comments

Comments
 (0)