Skip to content

Commit 607b0a1

Browse files
committed
C++: Add overlay support for discarding macro invocations
1 parent 21367f9 commit 607b0a1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cpp/ql/lib/semmle/code/cpp/internal/Overlay.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ private string getMultiLocationFilePath(@element e) {
5454
or
5555
// @namespace gets its location(s) from its @namespace_decl(s)
5656
exists(@namespace_decl nd | namespace_decls(nd, e, loc, _))
57+
or
58+
// @macroinvocation gets its location(s) from macrolocationbind
59+
macrolocationbind(e, loc)
5760
|
5861
result = getLocationFilePath(loc)
5962
)

0 commit comments

Comments
 (0)