[cfe-dev] [Debug Info] Wrong column numbers come from macros

David Blaikie via cfe-dev cfe-dev at lists.llvm.org
Wed Feb 21 08:00:10 PST 2018


I think it's a matter of this being the best of no great options available
in DWARF, but I personally haven't given it a great deal of thought.

On Tue, Feb 20, 2018 at 10:34 PM Alex Denisov via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> Hi,
>
> I see an issue with debug info and macro. Here is an example:
>
> #define f(x) x
> ...
> int a = f(b + c);
>         ^
>
> The debug information for each node in 'b + c' points to the 'f' (see the
> caret). I expect it to point to the actual source location.
>
> I assume that is a known issue, but I could find neither explanation nor
> bug report.
> Can somebody shed some light on the issue?
>
> Cheers,
> Alex.
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180221/2d1cb3f4/attachment.html>


More information about the cfe-dev mailing list