add .clang-format, to be used with clang-format-3.5
This commit is contained in:
parent
df3f588cb5
commit
4d937b7dbb
|
@ -0,0 +1,11 @@
|
|||
BasedOnStyle: google
|
||||
AllowShortIfStatementsOnASingleLine: false
|
||||
AllowShortLoopsOnASingleLine: false
|
||||
AllowShortFunctionsOnASingleLine: None
|
||||
AllowShortBlocksOnASingleLine: false
|
||||
AlwaysBreakBeforeMultilineStrings: false
|
||||
IndentWidth: 4
|
||||
PointerBindsToType: false
|
||||
ColumnLimit: 0
|
||||
ForEachMacros: [ TAILQ_FOREACH, TAILQ_FOREACH_REVERSE, SLIST_FOREACH, CIRCLEQ_FOREACH, CIRCLEQ_FOREACH_REVERSE, NODES_FOREACH, NODES_FOREACH_REVERSE ]
|
||||
SpaceBeforeParens: ControlStatements
|
|
@ -25,6 +25,10 @@ For packagers, another change is that yajl ≥ 2.0 is now required for compiling
|
|||
i3. This should not be a problem for anyone, as that version is pretty old by
|
||||
now.
|
||||
|
||||
For contributors, note that we have starting formatting the source code with
|
||||
clang-format-3.5. This means that there will no longer be a need to argue about
|
||||
coding style when discussing patches :).
|
||||
|
||||
┌────────────────────────────┐
|
||||
│ Changes in v4.8 │
|
||||
└────────────────────────────┘
|
||||
|
|
Loading…
Reference in New Issue