mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
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:
parent
9b9eeccf3a
commit
77680bff2b
|
@ -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…
Reference in New Issue
Block a user