mirror of
https://github.com/github/codeql.git
synced 2025-12-19 18:33:16 +01:00
12 lines
295 B
Plaintext
12 lines
295 B
Plaintext
import cpp
|
|
|
|
from MacroAccess mi, string type, string parent
|
|
where if mi instanceof MacroInvocation
|
|
then type = "MacroInvocation"
|
|
else type = "MacroAccess"
|
|
and if exists(mi.getParentInvocation())
|
|
then parent = mi.getParentInvocation().toString()
|
|
else parent = "none"
|
|
|
|
select mi, type, parent
|