[cfe-dev] SourceLocation comparisons

Nikola Smiljanic popizdeh at gmail.com
Thu Sep 11 14:37:18 PDT 2014


On Fri, Sep 12, 2014 at 4:46 AM, Robert Ankeney <rrankene at gmail.com> wrote:

> Of course I'm assuming the encoded value always increases as you go
> through the file, which seems to be the case.
>


I don't think that this is necessarily true due to macros. I was told that
the right way to compare them is with SourceManager::isBeforeInTranslationUnit.
Hopefully someone can provide a concrete example?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140912/637c9c23/attachment.html>


More information about the cfe-dev mailing list