[Development] Basing Qt Creator Coding Style on C++ Core Guidelines?

Edward Welbourne edward.welbourne at qt.io
Thu Nov 17 10:46:24 CET 2016


On quarta-feira, 16 de novembro de 2016 17:11:02 PST Marco Bubke wrote:
>> Like you maybe have learned there are C++ Core Guidelines. They are
>> already very comprehensive. What about basing the Qt Creator Code
>> Style on it?
>>
>> I see advantages like new developer can easier grasp out rules
>> because they are already familiar with it.
>>
>> We may have to exclude some rules too because they don't fit to us.

Thiago Macieira replied:
> "very comprehensive" is an understatement. Can you point out examples
> of rules you're more interested in? Maybe we should start with a
> whitelist of rules we do want and progressively expand from there.

The guidelines' introduction does, after all, countenance gradual
adoption - especially for existing code-bases - and a general opt-in
approach.  Presumably QtC's style is also used for new projects; it may
be worth using a larger subset of the guidelines for new projects as
compared to old; and it probably makes sense to make it easy for users
to configure which of the guidelines they opt in to, for each project.

	Eddy.



More information about the Development mailing list