[cfe-dev] How to create a SourceLocation from line number?
Sean Silva
chisophugis at gmail.com
Thu Jan 8 13:14:13 PST 2015
On Thu, Jan 8, 2015 at 12:44 AM, Csaba Raduly <rcsaba at gmail.com> wrote:
> On Wed, Jan 7, 2015 at 10:22 PM, Sean Silva <chisophugis at gmail.com> wrote:
> > Does SourceManager::translateFileLineCol work for you?
> >
> >
> http://clang.llvm.org/doxygen/classclang_1_1SourceManager.html#a5573aab1578a194e43c7934e6902aeec
>
> Which says:
> "
> If the source file is included multiple times, the source location
> will be based upon the first inclusion.
> If the source file is included multiple times, the source location
> will be based upon an arbitrary inclusion.
> "
>
> These two sentences contradict each other.
>
>
Indeed. Which one is it?
-- Sean Silva
> Csaba
> --
> GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
> The Tao of math: The numbers you can count are not the real numbers.
> Life is complex, with real and imaginary parts.
> "Ok, it boots. Which means it must be bug-free and perfect. " -- Linus
> Torvalds
> "People disagree with me. I just ignore them." -- Linus Torvalds
> _______________________________________________
> cfe-dev mailing list
> 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/20150108/3161a100/attachment.html>
More information about the cfe-dev
mailing list