Skip to content

Commit edf41d5

Browse files
committed
Scope: improve user declaration definition
1 parent ef110cd commit edf41d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ 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
71+
not this instanceof ClassTemplateInstantiation and
7072
// compiler inferred parameters have name of p#0
7173
not this.(Parameter).getName() = "p#0"
7274
}

0 commit comments

Comments
 (0)