mirror of
https://github.com/ceph/ceph
synced 2024-12-31 16:12:42 +00:00
Clarify CodingStyle with respect to tab compression of space runs
Signed-off-by: Dan Mick <dan.mick@inktank.com> Reviewed-by: Greg Farnum <gregory.farnum@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
This commit is contained in:
parent
fb379174bf
commit
e920a61521
@ -72,6 +72,14 @@ by section.
|
||||
Don't sweat it, unless the license varies from that of the project
|
||||
(LGPL2) or the code origin isn't reflected by the git history.
|
||||
|
||||
* Formatting > Tabs:
|
||||
Indent width is two spaces. When runs of 8 spaces can be compressed
|
||||
to a single tab character, do so. The standard Emacs/Vim settings
|
||||
header is:
|
||||
|
||||
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
|
||||
// vim: ts=8 sw=2 smarttab
|
||||
|
||||
* Formatting > Conditionals:
|
||||
|
||||
- No spaces inside conditionals please, e.g.
|
||||
|
Loading…
Reference in New Issue
Block a user