We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
StdNamespace
1 parent 05c30e8 commit f46183dCopy full SHA for f46183d
cpp/ql/lib/semmle/code/cpp/Namespace.qll
@@ -230,8 +230,12 @@ class GlobalNamespace extends Namespace {
230
}
231
232
/**
233
- * The C++ `std::` namespace.
+ * The C++ `std::` namespace and its inline namespaces.
234
*/
235
class StdNamespace extends Namespace {
236
- StdNamespace() { this.hasName("std") and this.getParentNamespace() instanceof GlobalNamespace }
+ StdNamespace() {
237
+ this.hasName("std") and this.getParentNamespace() instanceof GlobalNamespace
238
+ or
239
+ this.isInline() and this.getParentNamespace() instanceof StdNamespace
240
+ }
241
0 commit comments