[cfe-dev] Checking if a SourceLocation points to a semi-colon

Himanshu via cfe-dev cfe-dev at lists.llvm.org
Mon Aug 1 11:25:34 PDT 2016

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


On Mon, Aug 1, 2016 at 11:19 AM, Himanshu <himanshu at utexas.edu> wrote:

> 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!
> --
> Himanshu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160801/ed9b3145/attachment.html>

More information about the cfe-dev mailing list