소스 검색

Documentation: Document preference for SCREAMING_CASE constants

Linus Groh 2 년 전
부모
커밋
259a84b7b6
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      Documentation/CodingStyle.md

+ 5 - 1
Documentation/CodingStyle.md

@@ -11,7 +11,11 @@ We'll definitely be tweaking and amending this over time, so let's consider it a
 
 
 ### Names
 ### Names
 
 
-A combination of CamelCase and snake\_case. Use CamelCase (Capitalize the first letter, including all letters in an acronym) in a class, struct, or namespace name. Use snake\_case (all lowercase, with underscores separating words) for variable and function names.
+A combination of CamelCase, snake\_case, and SCREAMING\_CASE:
+
+- Use CamelCase (Capitalize the first letter, including all letters in an acronym) in a class, struct, or namespace name
+- Use snake\_case (all lowercase, with underscores separating words) for variable and function names
+- Use SCREAMING\_CASE for constants (both global and static member variables)
 
 
 ###### Right:
 ###### Right: