From 77680bff2bad6664e626c06886226c81b78f0572 Mon Sep 17 00:00:00 2001 From: Kimi MA Date: Fri, 13 Oct 2023 03:53:14 +0800 Subject: [PATCH] fix NL.9 ALL_CAPS does not apply to non-macro symbolic constants (#2130) * fix NL.9 ALL_CAPS does not apply to non-macro symbolic constants * Update CppCoreGuidelines.md fix according to comment --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index e80f6f7..d3a580c 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -21676,7 +21676,7 @@ To avoid confusing macros with names that obey scope and type rules. ##### Note -This rule applies to non-macro symbolic constants: +In particular, this avoids confusing macros with non-macro symbolic constants (see also [Enum.5: Don't use `ALL_CAPS` for enumerators](#Renum-caps)) enum bad { BAD, WORSE, HORRIBLE }; // BAD