mirror of
https://github.com/reactos/CMake.git
synced 2024-11-28 05:50:42 +00:00
523c443d13
Update `.clang-format` with configuration to make the 6.0 format as close as possible to what 3.8 produced before. Then revise the style: * Indent preprocessor directives (a feature new since 3.8) * Add a newline and indentation before inheritance `:` and `,` Rename the Git attribute identifying the format to include the clang-format version number: `format.clang-format-6.0`. This will aid external infrastructure in knowing what version of the tool to run.
22 lines
551 B
YAML
22 lines
551 B
YAML
---
|
|
# This configuration requires clang-format version 6.0 exactly.
|
|
BasedOnStyle: Mozilla
|
|
AlignOperands: false
|
|
AllowShortFunctionsOnASingleLine: InlineOnly
|
|
AlwaysBreakAfterDefinitionReturnType: None
|
|
AlwaysBreakAfterReturnType: None
|
|
BinPackArguments: true
|
|
BinPackParameters: true
|
|
BraceWrapping:
|
|
AfterClass: true
|
|
AfterEnum: true
|
|
AfterFunction: true
|
|
AfterStruct: true
|
|
AfterUnion: true
|
|
BreakBeforeBraces: Custom
|
|
ColumnLimit: 79
|
|
IndentPPDirectives: AfterHash
|
|
SortUsingDeclarations: false
|
|
SpaceAfterTemplateKeyword: true
|
|
...
|