Skip to content

Commit ab57036

Browse files
Update cpp/common/src/codingstandards/cpp/Scope.qll
Co-authored-by: Remco Vermeulen <[email protected]>
1 parent 97ccd29 commit ab57036

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/common/src/codingstandards/cpp/Scope.qll

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class UserDeclaration extends Declaration {
6767
not this.(Variable).isCompilerGenerated() and
6868
not this.(Function).isCompilerGenerated() and
6969
not this.(Parameter).getFunction().isCompilerGenerated() and
70-
// will falsely conflict
70+
// Class template instantiations are compiler generated instances that share the same parent scope. This will result in a cross-product on class template instantiations because they have the same name and same parent scope. We therefore exclude these from consideration like we do with other compiler generated identifiers of interest.
7171
not this instanceof ClassTemplateInstantiation and
7272
// compiler inferred parameters have name of p#0
7373
not this.(Parameter).getName() = "p#0"

0 commit comments

Comments
 (0)