<div dir="ltr"><div style>Hi,</div><div><br></div>I'm currently trying to implement a checker that needs to know when a certain macro is invoked.<div><br></div><div style><div>For example, if I had something like:</div>
<div>#define MY_MACRO(x) ...<br></div><div><br></div><div style>I would want to check if the statement is MY_MACRO and then inspect its argument. </div><div style><br></div><div style><div>I see that with checkPreStmt or checkPostStmt. I can check if it is a macro, via getLocStart and isMacroID. Is there a way to get the name of the macro and it's argument (if it has one)?</div>
<div>I see that MacroInfo could be used to get the args possibly, but it doesn't seem to give me the name. </div></div><div style><br></div><div style>Thanks!</div><div style><br></div><div style>Sincerely,</div><div style>
Todd Nowacki</div><div style><br></div></div></div>