Skip to content

Commit 11965cb

Browse files
committed
C++: Parameters can have a static specifier but are not static
This will be a problem once we output those specifiers in the extractor.
1 parent 45c97b2 commit 11965cb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cpp/ql/lib/semmle/code/cpp/Parameter.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ class Parameter extends LocalScopeVariable, @parameter {
157157
vde.isDefinition() or not this.getAnEffectiveDeclarationEntry().isDefinition()
158158
)
159159
}
160+
161+
override predicate isStatic() { none() }
160162
}
161163

162164
/**

0 commit comments

Comments
 (0)