Skip to content

Commit 5c003cb

Browse files
committed
Merge #10917: developer-notes: add reference to snake_case and PascalCase
4a7a4ff developer-notes: add reference to snake_case and PascalCase (Marko Bencun) Pull request description: CamelCase is ambiguous as it refers to both lowerCamelCase and UpperCamelCase, whereas PascalCase is only UpperCamelCase. Tree-SHA512: 8eebc42931f10ed8fd314c6b8a2a936aa18fce358a50bb8ae580404fb06a97b8fece12c0398170a9a8ddce250d1e79ece3774cf8a36ac604d67b2797b54aa005
2 parents 04d395e + 4a7a4ff commit 5c003cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/developer-notes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ tool to clean up patches automatically before submission.
2828
required when doing so would need changes to significant pieces of existing
2929
code.
3030
- Variable and namespace names are all lowercase, and may use `_` to
31-
separate words.
31+
separate words (snake_case).
3232
- Class member variables have a `m_` prefix.
3333
- Global variables have a `g_` prefix.
3434
- Constant names are all uppercase, and use `_` to separate words.
35-
- Class names, function names and method names are CamelCase. Do not prefix
36-
class names with `C`.
35+
- Class names, function names and method names are UpperCamelCase
36+
(PascalCase). Do not prefix class names with `C`.
3737

3838
- **Miscellaneous**
3939
- `++i` is preferred over `i++`.

0 commit comments

Comments
 (0)