<div dir="ltr">Have a look at Lexer::findLocationAfterToken<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Sep 28, 2014 at 9:16 PM, kwadwo amankwa <span dir="ltr"><<a href="mailto:que@lunarblack.com" target="_blank">que@lunarblack.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hi Nikola,<br>
<br>
I am trying to find the last include in a file and then create a
fixit hint to point to the next whitespace to <br>
include the file (bug 5835) . I have written a PPCallback class
which locates the last include directive and now i need to find the
adjacent location to last include directive . (which is hopefully a
whitespace)<br>
So I can just use the plus operator , then ?<div><div class="h5"><br>
<br>
<div>On 28/09/14 12:06, Nikola Smiljanic
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">What exactly are you trying to do? SourceLocation
is just an index into a source buffer, so the next one would be
just +1.</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sun, Sep 28, 2014 at 7:17 PM, kwadwo
amankwa <span dir="ltr"><<a href="mailto:que@lunarblack.com" target="_blank">que@lunarblack.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi ,<br>
<br>
Can anyone show me how to find the adjacent or next
SourceLocation of a SourceLocation?<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div></div></div>
</blockquote></div><br></div>