[cfe-dev] Finding the next SourceLocation of a SourceLocation
kwadwo amankwa
que at lunarblack.com
Sun Sep 28 04:16:41 PDT 2014
Hi Nikola,
I am trying to find the last include in a file and then create a fixit
hint to point to the next whitespace to
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)
So I can just use the plus operator , then ?
On 28/09/14 12:06, Nikola Smiljanic wrote:
> What exactly are you trying to do? SourceLocation is just an index
> into a source buffer, so the next one would be just +1.
>
> On Sun, Sep 28, 2014 at 7:17 PM, kwadwo amankwa <que at lunarblack.com
> <mailto:que at lunarblack.com>> wrote:
>
> Hi ,
>
> Can anyone show me how to find the adjacent or next
> SourceLocation of a SourceLocation?
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu <mailto:cfe-dev at cs.uiuc.edu>
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140928/658672e0/attachment.html>
More information about the cfe-dev
mailing list