Checking if a SourceLocation points to a semi-colon

Hi All,

When trying to perform rewriter.InsertTextAfter( … ) for end locations of some function calls, I run into situations where the location is a semi-colon due to macro expansions. Is there a way to check if the location points to a semi-colon?

Thanks!

I think I found the solution. I believe I need to use SourceManager::getCharacterData (…).