aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2017-07-26 11:02:06 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2017-07-26 11:05:11 +0200
commit5c003cb1afcb959ace2579ba0d764525f5bfacaf (patch)
tree9dcd603af752367422373ae318efc98cd9af0ccc
parent04d395e8327d512ae31d8e024d95e2d1e1729954 (diff)
parent4a7a4ff1f1f327d68fafc0d413f16ad0fdf656af (diff)
downloadbitcoin-5c003cb1afcb959ace2579ba0d764525f5bfacaf.tar.xz
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
-rw-r--r--doc/developer-notes.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/developer-notes.md b/doc/developer-notes.md
index 81bdcc9fdb..458e7bcbff 100644
--- a/doc/developer-notes.md
+++ b/doc/developer-notes.md
@@ -28,12 +28,12 @@ tool to clean up patches automatically before submission.
required when doing so would need changes to significant pieces of existing
code.
- Variable and namespace names are all lowercase, and may use `_` to
- separate words.
+ separate words (snake_case).
- Class member variables have a `m_` prefix.
- Global variables have a `g_` prefix.
- Constant names are all uppercase, and use `_` to separate words.
- - Class names, function names and method names are CamelCase. Do not prefix
- class names with `C`.
+ - Class names, function names and method names are UpperCamelCase
+ (PascalCase). Do not prefix class names with `C`.
- **Miscellaneous**
- `++i` is preferred over `i++`.