vcpkg/toolsrc/.clang-format

55 lines
1.4 KiB
Plaintext
Raw Normal View History

2017-04-28 09:55:36 +08:00
BasedOnStyle: WebKit
Language: Cpp
2017-04-29 03:57:15 +08:00
Standard: Cpp11
2017-04-28 09:55:36 +08:00
UseTab: Never
IndentWidth: 4
ColumnLimit: 120
PointerAlignment: Left
BreakBeforeBraces: Allman
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: false
AlwaysBreakTemplateDeclarations: true
AlignAfterOpenBracket: true
AlignOperands: true
AlignTrailingComments: true
BinPackArguments: false
BinPackParameters: false
BreakBeforeBinaryOperators: None
BreakConstructorInitializersBeforeComma: true
ConstructorInitializerAllOnOneLineOrOnePerLine: true
Cpp11BracedListStyle: true
2017-04-28 09:55:36 +08:00
IndentCaseLabels: true
KeepEmptyLinesAtTheStartOfBlocks: false
NamespaceIndentation: All
ForEachMacros: [TEST_CASE, SECTION]
PenaltyReturnTypeOnItsOwnLine: 1000
SpaceAfterTemplateKeyword: false
SpaceBeforeCpp11BracedList: false
DeriveLineEnding: false
UseCRLF: false
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^(<vcpkg/base/system_headers\.h>|"pch\.h")$'
Priority: -1
- Regex: '^<catch2/catch\.hpp>$'
Priority: 1
2020-09-03 00:13:44 +08:00
- Regex: '^<vcpkg/base/fwd/.*\.h>$'
Priority: 2
2020-09-03 00:13:44 +08:00
- Regex: '^<vcpkg/fwd/.*\.h>$'
Priority: 3
2020-09-03 00:13:44 +08:00
- Regex: '^<vcpkg/base/.*\.h>$'
Priority: 4
2020-09-03 00:13:44 +08:00
- Regex: '^<vcpkg/.*\.h>$'
Priority: 5
2020-09-03 00:13:44 +08:00
- Regex: '^<[a-z0-9_]*\.h>$'
Priority: 6
2020-09-03 00:13:44 +08:00
- Regex: '^<[a-z0-9_]*>$' # C++ standard library
Priority: 7