Skip to content

Commit fcd7ea4

Browse files
committed
C/C++ overlay: Add overlay support for discarding macro invocations
1 parent 3b93328 commit fcd7ea4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ private string getMultiLocationFilePath(@element e) {
4646
exists(@type_decl td | type_decls(td, e, loc))
4747
or
4848
exists(@namespace_decl nd | namespace_decls(nd, e, loc, _))
49+
or
50+
macrolocationbind(e, loc)
4951
|
5052
result = getLocationFilePath(loc)
5153
)

0 commit comments

Comments
 (0)