mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
Merge pull request #159 from ian-semmle/EnumConstant
C++: Fix spurious extra qualified names for enum constants within a class
This commit is contained in:
@@ -56,6 +56,7 @@ abstract class Declaration extends Locatable, @declaration {
|
||||
// MemberFunction, MemberVariable, MemberType
|
||||
exists (Declaration m
|
||||
| m = this and
|
||||
not m instanceof EnumConstant and
|
||||
result = m.getDeclaringType().getQualifiedName() + "::" + m.getName())
|
||||
or
|
||||
exists (EnumConstant c
|
||||
|
||||
Reference in New Issue
Block a user