From 259a84b7b68dc61dc6bd98c4b562f7eb1ed74542 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Thu, 13 Apr 2023 15:57:30 +0200 Subject: [PATCH] Documentation: Document preference for SCREAMING_CASE constants --- Documentation/CodingStyle.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/CodingStyle.md b/Documentation/CodingStyle.md index b526658942d..2af10bbeeea 100644 --- a/Documentation/CodingStyle.md +++ b/Documentation/CodingStyle.md @@ -11,7 +11,11 @@ We'll definitely be tweaking and amending this over time, so let's consider it a ### Names -A combination of CamelCase and snake\_case. Use CamelCase (Capitalize the first letter, including all letters in an acronym) in a class, struct, or namespace name. Use snake\_case (all lowercase, with underscores separating words) for variable and function names. +A combination of CamelCase, snake\_case, and SCREAMING\_CASE: + +- Use CamelCase (Capitalize the first letter, including all letters in an acronym) in a class, struct, or namespace name +- Use snake\_case (all lowercase, with underscores separating words) for variable and function names +- Use SCREAMING\_CASE for constants (both global and static member variables) ###### Right: