diff options
author | Dan Mick <dan.mick@inktank.com> | 2012-08-31 15:18:53 -0700 |
---|---|---|
committer | Dan Mick <dan.mick@inktank.com> | 2012-08-31 15:47:12 -0700 |
commit | e920a61521d7d3d0ed6d035ac8faff6b0b6c58a9 (patch) | |
tree | 8f612e692a9115f6e9fe3baa56333e762010c79c /CodingStyle | |
parent | fb379174bfa32ea5123a451fc5ddc30ecf15d2f1 (diff) | |
download | ceph-e920a61521d7d3d0ed6d035ac8faff6b0b6c58a9.tar.gz |
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>
Diffstat (limited to 'CodingStyle')
-rw-r--r-- | CodingStyle | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CodingStyle b/CodingStyle index fee53b8c556..3146d2ae8ee 100644 --- a/CodingStyle +++ b/CodingStyle @@ -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. |