[Development] Order of macro expansion in compiler error messages

Thiago Macieira thiago.macieira at intel.com
Sat Dec 7 20:53:32 CET 2013


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20131207/6f2da74a/attachment.sig>


More information about the Development mailing list