mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
* Fix shell variable comparison without $CI present + '[' = true ']' ./tests/restyle.sh: line 16: [: =: unary operator expected vs. + '[' '' = true ']' * Update to clang-format-18 new opt to skip overly eager macro formatting https://clang.llvm.org/docs/ClangFormatStyleOptions.html#skipmacrodefinitionbody minor changes between 15 and 18 for ide examples reference arduino-ide format is still stuck with 15, though https://github.com/arduino/clang-static-binaries/releases * Pin clang-format in CI recipe not the script itself * style
31 lines
945 B
YAML
31 lines
945 B
YAML
BasedOnStyle: WebKit
|
|
AlignTrailingComments: true
|
|
SortIncludes: false
|
|
ColumnLimit: 100
|
|
KeepEmptyLinesAtTheStartOfBlocks: false
|
|
SpaceAfterTemplateKeyword: false
|
|
SpaceBeforeInheritanceColon: false
|
|
SpacesBeforeTrailingComments: 2
|
|
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
|
|
ReflowComments: false
|
|
SkipMacroDefinitionBody: true
|