From fad5809cb92329f58c12679d0e276fe0769b5845 Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Fri, 10 Jul 2026 10:12:14 +0200 Subject: [PATCH] doc: Update enum class constant naming style guide --- doc/developer-notes.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/developer-notes.md b/doc/developer-notes.md index 3edf5d34250..0bc1bd25027 100644 --- a/doc/developer-notes.md +++ b/doc/developer-notes.md @@ -40,10 +40,10 @@ code. - Class member variables have a `m_` prefix. - Global variables have a `g_` prefix. - Constant names are all uppercase, and use `_` to separate words. - - Enumerator constants may be `snake_case`, `PascalCase` or `ALL_CAPS`. - This is a more tolerant policy than the [C++ Core + - Enumerator constants may be `snake_case`, or `PascalCase`. They should not + be `ALL_CAPS`, according to the [C++ Core Guidelines](https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#renum-caps), - which recommend using `snake_case`. Please use what seems appropriate. + to avoid clashing with macros. - Class names, function names, and method names are UpperCamelCase (PascalCase). Do not prefix class names with `C`. See [Internal interface naming style](#internal-interface-naming-style) for an exception to this