Skip to content

Commit 61823ea

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

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ private string getSingleLocationFilePath(@element e) {
2828
type_decls(e, _, loc)
2929
or
3030
namespace_decls(e, _, loc, _)
31+
or
32+
macroinvocations(e, _, loc, _)
33+
or
34+
preprocdirects(e, _, loc)
3135
|
3236
result = getLocationFilePath(loc)
3337
)

0 commit comments

Comments
 (0)