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
This commit is contained in:
Kimi MA 2023-10-13 03:53:14 +08:00 committed by GitHub
parent 9b9eeccf3a
commit 77680bff2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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