<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">This is not even a limitation of DWARF but rather mandated by the C specification. The C language standard explicitly specifies that all code in a (multi-line) macro expansion shall behave as if it were on the same line as the macro invocation. I understand that it technically doesn't say anything about columns and perhaps we could do something for single-line macros there, but this is basically the root of the issue.<br class=""><div><br class=""></div><div>-- adrian</div><div><br class=""><blockquote type="cite" class=""><div class="">On Feb 21, 2018, at 8:00 AM, David Blaikie <<a href="mailto:dblaikie@gmail.com" class="">dblaikie@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">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.<br class=""><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Tue, Feb 20, 2018 at 10:34 PM Alex Denisov via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space" class="">Hi,<br class=""><br class="">I see an issue with debug info and macro. Here is an example:<br class=""><br class=""><font face="Bitstream Vera Sans Mono" class="">#define f(x) x<br class="">...<br class="">int a = f(b + c);<br class="">        ^</font><br class=""><br class="">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.<br class=""><br class="">I assume that is a known issue, but I could find neither explanation nor bug report.<br class="">Can somebody shed some light on the issue?<br class=""><br class="">Cheers,<div class="">Alex.<br class=""><br class=""></div></div>_______________________________________________<br class="">
cfe-dev mailing list<br class="">
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank" class="">cfe-dev@lists.llvm.org</a><br class="">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank" class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br class="">
</blockquote></div></div>
</div></blockquote></div><br class=""></body></html>