mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
C/C++ overlay: Add overlay support for discarding macro invocations
This commit is contained in:
@@ -28,6 +28,10 @@ private string getSingleLocationFilePath(@element e) {
|
|||||||
type_decls(e, _, loc)
|
type_decls(e, _, loc)
|
||||||
or
|
or
|
||||||
namespace_decls(e, _, loc, _)
|
namespace_decls(e, _, loc, _)
|
||||||
|
or
|
||||||
|
macroinvocations(e, _, loc, _)
|
||||||
|
or
|
||||||
|
preprocdirects(e, _, loc)
|
||||||
|
|
|
|
||||||
result = getLocationFilePath(loc)
|
result = getLocationFilePath(loc)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user