We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e14342 commit 21367f9Copy full SHA for 21367f9
1 file changed
cpp/ql/lib/semmle/code/cpp/internal/Overlay.qll
@@ -29,6 +29,9 @@ private string getSingleLocationFilePath(@element e) {
29
or
30
// @type_decl has a direct location in the type_decls relation
31
type_decls(e, _, loc)
32
+ or
33
+ // @namespace_decl has a direct location in the namespace_decls relation
34
+ namespace_decls(e, _, loc, _)
35
|
36
result = getLocationFilePath(loc)
37
)
@@ -48,6 +51,9 @@ private string getMultiLocationFilePath(@element e) {
48
51
49
52
// @usertype gets its location(s) from its @type_decl(s)
50
53
exists(@type_decl td | type_decls(td, e, loc))
54
55
+ // @namespace gets its location(s) from its @namespace_decl(s)
56
+ exists(@namespace_decl nd | namespace_decls(nd, e, loc, _))
57
58
59
0 commit comments