Files
2018-08-02 17:53:23 +01:00

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