mirror of
https://github.com/esp8266/Arduino.git
synced 2025-08-01 03:47:23 +03:00
Migrate from astyle to clang-format (#8464)
This commit is contained in:
committed by
Max Prokhorov
parent
46190b61f1
commit
19b7a29720
29
tests/clang-format-core.yaml
Normal file
29
tests/clang-format-core.yaml
Normal file
@ -0,0 +1,29 @@
|
||||
BasedOnStyle: WebKit
|
||||
AlignTrailingComments: true
|
||||
SortIncludes: false
|
||||
ColumnLimit: 100
|
||||
KeepEmptyLinesAtTheStartOfBlocks: false
|
||||
SpaceAfterTemplateKeyword: false
|
||||
SpaceBeforeInheritanceColon: false
|
||||
SpacesBeforeTrailingComments: 2
|
||||
AlignTrailingComments: true
|
||||
AllowShortBlocksOnASingleLine: Empty
|
||||
AllowShortFunctionsOnASingleLine: Empty
|
||||
AllowShortIfStatementsOnASingleLine: false
|
||||
AllowShortLambdasOnASingleLine: Empty
|
||||
AllowShortLoopsOnASingleLine: false
|
||||
AlignConsecutiveAssignments: Consecutive
|
||||
AlignConsecutiveBitFields: Consecutive
|
||||
AlignConsecutiveDeclarations: Consecutive
|
||||
AlignAfterOpenBracket: Align
|
||||
AlignOperands: Align
|
||||
AlwaysBreakTemplateDeclarations: Yes
|
||||
BreakConstructorInitializers: AfterColon
|
||||
BreakBeforeBinaryOperators: All
|
||||
BreakBeforeTernaryOperators: true
|
||||
BreakBeforeConceptDeclarations: true
|
||||
FixNamespaceComments: true
|
||||
NamespaceIndentation: Inner
|
||||
BreakBeforeBraces: Allman
|
||||
IndentWidth: 4
|
||||
IndentCaseLabels: false
|
Reference in New Issue
Block a user