[Development] Order of macro expansion in compiler error messages

Chris Colbert sccolbert at gmail.com
Sat Dec 7 21:03:26 CET 2013


Is there a line missing from Option A, just after the line for <stdin>?


On Sat, Dec 7, 2013 at 2:53 PM, Thiago Macieira
<thiago.macieira at intel.com>wrote:

> Hi guys
>
> Just a quick poll: which order do you think is more intuitive?
>
> Option A:
> qobjectdefs.h:69:20: error: expected unqualified-id before ‘protected’
>  #   define signals protected
>                     ^
> <stdin>:1:6: note: in expansion of macro ‘signals’
>
> Option B:
> <stdin>:1:6: error: expected unqualified-id
> bool signals;
>      ^
> qobjectdefs.h:69:20: note: expanded from macro 'signals'
> #   define signals protected
>                    ^
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel Open Source Technology Center
>
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20131207/a336b275/attachment.html>


More information about the Development mailing list