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

Alex Denisov via cfe-dev cfe-dev at lists.llvm.org
Tue Feb 20 22:34:28 PST 2018


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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180221/c4c6ee4b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 529 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180221/c4c6ee4b/attachment.sig>


More information about the cfe-dev mailing list