[Development] Can we remove recommendation against unnamed namespaces from Qt coding conventions?
Jøger Hansegård
joger.hansegard at qt.io
Wed Feb 21 17:53:35 CET 2024
> Our Qt coding conventions (https://wiki.qt.io/Coding_Conventions) has a
> statement on the use of unnamed (anonymous) namespaces. As far as I
> understand, this statement is now outdated. Can we delete this statement
> and lean on Cpp Core Guidelines Cpp Core Guidelines SF.22 instead?
> Or do we need a Qt specific guideline on this topic?
There doesn't seem to be a semantic difference. Are you proposing we simply
replace our wording to point to SF22 or am I missing something?
--
Thiago Macieira - thiago.macieira (AT) intel.com
Cloud Software Architect - Intel DCAI Cloud Engineering
https://wiki.qt.io/Things_To_Look_Out_For_In_Reviews references several guidelines (Canons), including Qt coding conventions and also Cpp Core Guidelines. My idea was to avoid redundancy, and unless Qt coding conventions specifies otherwise, we lean on the other guidelines. So my proposal is to delete the item on anonymous namespaces from the Qt coding conventions.
--
Jøger Hansegård
More information about the Development
mailing list