From e920a61521d7d3d0ed6d035ac8faff6b0b6c58a9 Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Fri, 31 Aug 2012 15:18:53 -0700 Subject: [PATCH] Clarify CodingStyle with respect to tab compression of space runs Signed-off-by: Dan Mick Reviewed-by: Greg Farnum Reviewed-by: Josh Durgin --- CodingStyle | 8 ++++++++ 1 file changed, 8 insertions(+) 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.