Merge pull request #131 from ian-semmle/namespace_vars

C++: Give namespace variables a qualified name
This commit is contained in:
Jonas Jensen
2018-09-04 08:56:01 +02:00
committed by GitHub
3 changed files with 26 additions and 20 deletions

View File

@@ -62,7 +62,7 @@ abstract class Declaration extends Locatable, @declaration {
| c = this and
result = c.getDeclaringEnum().getQualifiedName() + "::" + c.getName())
or
exists (GlobalVariable v, string s1, string s2
exists (GlobalOrNamespaceVariable v, string s1, string s2
| v = this and
s2 = v.getNamespace().getQualifiedName() and
s1 = v.getName()