[postgis-tickets] r16439 - Small review pass for STYLE document
Sandro Santilli
strk at kbt.io
Wed Feb 28 02:24:44 PST 2018
Author: strk
Date: 2018-02-28 14:24:44 -0800 (Wed, 28 Feb 2018)
New Revision: 16439
Modified:
trunk/STYLE
Log:
Small review pass for STYLE document
Modified: trunk/STYLE
===================================================================
--- trunk/STYLE 2018-02-28 22:20:14 UTC (rev 16438)
+++ trunk/STYLE 2018-02-28 22:24:44 UTC (rev 16439)
@@ -15,12 +15,17 @@
:Formatting:
-All C code should use an ANSI standard formatting with tabs for block
+Most C code should use an ANSI standard formatting with tabs for block
indenting. When not block indenting, use spaces. To convert a file
to the standard format use:
astyle --style=ansi --indent=tab
+Some files use space indenting instead (check .editorconfig for info).
+For them, you can use:
+
+ astyle --style=ansi --indent=spaces=2
+
Do not get too happy with this command. If you want to re-format a file you
are working on:
@@ -27,9 +32,8 @@
a) run astyle on it
b) commit
c) do your work
- d) commit
- e) if you are really finicky run astyle again
- f) commit
+ d) run astyle again
+ e) commit
The idea is to avoid combining style-only commits and commits that change
logic, so the logic commits are easier to read.
More information about the postgis-tickets
mailing list