We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6e9cc46 + c8fcab8 commit 73675e2Copy full SHA for 73675e2
cpp/ql/src/semmle/code/cpp/Namespace.qll
@@ -195,13 +195,8 @@ class GlobalNamespace extends Namespace {
195
not result instanceof Function
196
) and
197
not exists(ConditionDeclExpr cde | cde.getVariable() = result) and
198
- not exists(Enum e | e.getAnEnumConstant() = result) and
199
- not result instanceof Parameter and
200
- not result instanceof ProxyClass and
201
- not result instanceof TemplateParameter and
202
- not result instanceof LocalVariable and
203
- not namespacembrs(_, unresolveElement(result)) and
204
- not result.isMember()
+ result.isTopLevel() and
+ not namespacembrs(_, unresolveElement(result))
205
}
206
207
/** Gets a child namespace of the global namespace. */
0 commit comments