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
pull/2156/head
Kimi MA 2 years ago committed by GitHub
parent 9b9eeccf3a
commit 77680bff2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save