mirror of
https://github.com/ceph/ceph
synced 2025-01-21 02:31:19 +00:00
CodingStyle: Typos, whitespace.
This commit is contained in:
parent
24faa3d198
commit
f29b9bd7de
12
CodingStyle
12
CodingStyle
@ -41,7 +41,7 @@ by section.
|
||||
|
||||
* Naming > Constant Names:
|
||||
|
||||
Google uses kSomeThing for constants. We prefere SOME_THING.
|
||||
Google uses kSomeThing for constants. We prefer SOME_THING.
|
||||
|
||||
* Naming > Function Names:
|
||||
|
||||
@ -64,16 +64,16 @@ the code origin isn't reflected by the git history.
|
||||
|
||||
if (foo) { // okay
|
||||
|
||||
if ( foo ) { // no
|
||||
if ( foo ) { // no
|
||||
|
||||
- Always use newline following if:
|
||||
|
||||
if (foo)
|
||||
bar; // okay
|
||||
if (foo)
|
||||
bar; // okay
|
||||
|
||||
if (foo) bar; // no, usually harder to parse visually
|
||||
|
||||
if (foo) bar; // no, usually hardler to visually parse
|
||||
|
||||
|
||||
|
||||
|
||||
The following guidelines have not been followed in the legacy code,
|
||||
|
Loading…
Reference in New Issue
Block a user