Code Health: Follow ES.9: Avoid ALL_CAPS names per ISO C++ guidelines #1238

Open
opened 2026-01-30 22:19:56 +00:00 by claunia · 0 comments
Owner

Originally created by @DHowett-MSFT on GitHub (May 21, 2019).

Per ISO C++ guidelines, ALL_CAPS is to be avoided except for macros:
ES.9: Avoid ALL_CAPS names

The reasoning behind this is that it allows the pre-processor to silently replace you variables with a macro definition without a warning.

Originally posted by @binarycrusader in https://github.com/microsoft/terminal/pull/913

Originally created by @DHowett-MSFT on GitHub (May 21, 2019). Per ISO C++ guidelines, ALL_CAPS is to be avoided except for macros: [ES.9: Avoid ALL_CAPS names](https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines.html#es9-avoid-all_caps-names) The reasoning behind this is that it allows the pre-processor to silently replace you variables with a macro definition without a warning. _Originally posted by @binarycrusader in https://github.com/microsoft/terminal/pull/913_
claunia added the Issue-TaskProduct-MetaArea-CodeHealth labels 2026-01-30 22:19:57 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1238