aboutsummaryrefslogtreecommitdiffstats
path: root/.clang-format
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-06-03 12:42:06 +0200
committerClifford Wolf <clifford@clifford.at>2018-06-03 12:42:06 +0200
commitd41936ecbf983f77e295b36d4ac3fed279243de1 (patch)
treebe8b83ff404d79e608940760dda080d06504896f /.clang-format
parent8b854a9e2867ef78bf7b38974c5819a47b3f03de (diff)
downloadnextpnr-d41936ecbf983f77e295b36d4ac3fed279243de1.tar.gz
nextpnr-d41936ecbf983f77e295b36d4ac3fed279243de1.tar.bz2
nextpnr-d41936ecbf983f77e295b36d4ac3fed279243de1.zip
Update clangformat make target and config
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format21
1 files changed, 10 insertions, 11 deletions
diff --git a/.clang-format b/.clang-format
index 3a5940ef..d825df6f 100644
--- a/.clang-format
+++ b/.clang-format
@@ -21,26 +21,26 @@ AlwaysBreakTemplateDeclarations: false
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
- AfterClass: false
+ AfterClass: true
AfterControlStatement: false
- AfterEnum: false
- AfterFunction: false
+ AfterEnum: true
+ AfterFunction: true
AfterNamespace: false
AfterObjCDeclaration: false
- AfterStruct: false
- AfterUnion: false
+ AfterStruct: true
+ AfterUnion: true
BeforeCatch: false
BeforeElse: false
IndentBraces: false
BreakBeforeBinaryOperators: None
-BreakBeforeBraces: Attach
+BreakBeforeBraces: Custom
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
ColumnLimit: 80
CommentPragmas: '^ IWYU pragma:'
ConstructorInitializerAllOnOneLineOrOnePerLine: false
-ConstructorInitializerIndentWidth: 4
-ContinuationIndentWidth: 4
+ConstructorInitializerIndentWidth: 8
+ContinuationIndentWidth: 8
Cpp11BracedListStyle: true
DerivePointerAlignment: false
DisableFormat: false
@@ -54,14 +54,14 @@ IncludeCategories:
- Regex: '.*'
Priority: 1
IndentCaseLabels: false
-IndentWidth: 2
+IndentWidth: 4
IndentWrappedFunctionNames: false
KeepEmptyLinesAtTheStartOfBlocks: true
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
-ObjCBlockIndentWidth: 2
+ObjCBlockIndentWidth: 4
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakBeforeFirstCallParameter: 19
@@ -87,4 +87,3 @@ Standard: Cpp11
TabWidth: 8
UseTab: Never
...
-