Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 97b0012 + f31ab3a commit a319fc0Copy full SHA for a319fc0
2 files changed
cpp/ql/lib/change-notes/2023-05-22-inline-in-std-namespace.md
@@ -0,0 +1,4 @@
1
+---
2
+category: minorAnalysis
3
4
+* The `StdNamespace` class now also includes all inline namespaces that are children of `std` namespace.
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