mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Small tweaks to our whitespace handling
This is still not (and likely will never be) intended to just be blindly run and mechanically applied to all files. It tries to implement our rules but it is not perfect and more importantly, we have parts of the code where we intentionally break our rules for various reasons of readability in that particular situation. But running this against the sources files you touch often will point out things that are wrong and should be fixed. This fixes the indentation for continuation lines and the handling of the for each style loops (clang 3.5 should have this built in - I'll play with the current development version of this later). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f24f0f3936
commit
c7e7cebed6
2 changed files with 15 additions and 6 deletions
|
@ -10,6 +10,7 @@ ConstructorInitializerAllOnOneLineOrOnePerLine: true
|
|||
ColumnLimit: 0
|
||||
IndentFunctionDeclarationAfterType: false #personal taste, good for long methods
|
||||
IndentWidth: 8
|
||||
ContinuationIndentWidth: 8
|
||||
MaxEmptyLinesToKeep: 2
|
||||
NamespaceIndentation: All
|
||||
SpaceBeforeAssignmentOperators: true
|
||||
|
@ -18,3 +19,4 @@ SpacesInParentheses: false
|
|||
SpacesBeforeTrailingComments: 1
|
||||
UseTab: Always
|
||||
PointerBindsToType: false
|
||||
# doesn't work, yet -> ForEachMacros: "Q_FOREACH"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue