[Development] A modest proposal: disable lower-case keywords (emit, foreach, forever, signals, slots) by default

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Sat Feb 22 12:02:16 CET 2020


Il 21/02/20 17:42, Thiago Macieira ha scritto:
> The first step would be for both qmake and cmake projects to warn if the
> project doesn't declare keywords or no_keywords. Allow that to stay for 2 or 3
> years so projects do update to declare their choices. This can start right
> now, in 5.15.
> 
> At some point after that, change the default. Like, for example, in Qt 7.

A data point I'd like to have is how many "real world" projects are 
enforcing no_keywords, at the moment?

Are we going to make life more awkward for everyone, with a marginal 
gain (stop polluting the preprocessor with lowercase macros), or _de 
facto_ any big project already disables the macros anyhow?

My 2 c,
-- 
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4329 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/development/attachments/20200222/98225942/attachment.bin>


More information about the Development mailing list