Detecting Macro Expansions

How can I determine if an IntegerLiteral comes from a macro expansion?

Thanks

Try integerLiteral->getLocation().isMacroID() (untested)

Nico

Thanks that seems to work. How can I retrieve the identifier of the macro?