Getting macro definition from expansion


I am trying to get the source definition from an expansion while parsing ast. I am able to get a sourcelocation object that points to the start of the macro defn using getspellingloc . But I dont know how to get the full macro that is in that source