nghttp2/.clang-format

192 lines
5.3 KiB
Plaintext
Raw Permalink Normal View History

---
Language: Cpp
AccessModifierOffset: -2
AlignAfterOpenBracket: Align
2022-04-03 14:36:56 +02:00
AlignArrayOfStructures: None
2021-08-04 08:02:20 +02:00
AlignConsecutiveMacros: None
AlignConsecutiveAssignments: None
AlignConsecutiveBitFields: None
AlignConsecutiveDeclarations: None
2017-11-23 06:16:42 +01:00
AlignEscapedNewlines: Right
2021-08-04 08:02:20 +02:00
AlignOperands: Align
AlignTrailingComments: true
2019-12-18 06:23:43 +01:00
AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
2021-08-04 08:02:20 +02:00
AllowShortEnumsOnASingleLine: true
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All
2019-12-18 06:23:43 +01:00
AllowShortLambdasOnASingleLine: All
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
2019-01-11 16:11:19 +01:00
AlwaysBreakTemplateDeclarations: MultiLine
2021-08-04 08:02:20 +02:00
AttributeMacros:
- __capability
BinPackArguments: true
BinPackParameters: true
2019-12-18 06:23:43 +01:00
BraceWrapping:
AfterCaseLabel: false
AfterClass: false
2021-08-04 08:02:20 +02:00
AfterControlStatement: Never
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
2018-06-09 09:20:27 +02:00
AfterExternBlock: false
BeforeCatch: false
BeforeElse: false
2021-08-04 08:02:20 +02:00
BeforeLambdaBody: false
BeforeWhile: false
IndentBraces: false
2017-11-23 06:16:42 +01:00
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: None
2021-08-04 08:02:20 +02:00
BreakBeforeConceptDeclarations: true
BreakBeforeBraces: Attach
2017-11-23 06:16:42 +01:00
BreakBeforeInheritanceComma: false
2019-01-11 16:11:19 +01:00
BreakInheritanceList: BeforeColon
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
2017-11-23 06:16:42 +01:00
BreakConstructorInitializers: BeforeColon
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 80
CommentPragmas: '^ IWYU pragma:'
2022-04-03 14:36:56 +02:00
QualifierAlignment: Leave
2017-11-23 06:16:42 +01:00
CompactNamespaces: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
2021-08-04 08:02:20 +02:00
DeriveLineEnding: true
DerivePointerAlignment: false
DisableFormat: false
2022-04-03 14:36:56 +02:00
EmptyLineAfterAccessModifier: Never
2021-08-04 08:02:20 +02:00
EmptyLineBeforeAccessModifier: LogicalBlock
ExperimentalAutoDetectBinPacking: false
2022-04-03 14:36:56 +02:00
PackConstructorInitializers: NextLine
BasedOnStyle: ''
ConstructorInitializerAllOnOneLineOrOnePerLine: false
AllowAllConstructorInitializersOnNextLine: true
2017-11-23 06:16:42 +01:00
FixNamespaceComments: true
2019-12-18 06:23:43 +01:00
ForEachMacros:
2017-11-23 06:16:42 +01:00
- foreach
- Q_FOREACH
- BOOST_FOREACH
2022-04-03 14:36:56 +02:00
IfMacros:
- KJ_IF_MAYBE
2018-06-09 09:20:27 +02:00
IncludeBlocks: Preserve
2019-12-18 06:23:43 +01:00
IncludeCategories:
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
Priority: 2
2021-08-04 08:02:20 +02:00
SortPriority: 0
CaseSensitive: false
- Regex: '^(<|"(gtest|isl|json)/)'
Priority: 3
2021-08-04 08:02:20 +02:00
SortPriority: 0
CaseSensitive: false
- Regex: '.*'
Priority: 1
2021-08-04 08:02:20 +02:00
SortPriority: 0
CaseSensitive: false
IncludeIsMainRegex: '$'
2021-08-04 08:02:20 +02:00
IncludeIsMainSourceRegex: ''
2022-04-03 14:36:56 +02:00
IndentAccessModifiers: false
IndentCaseLabels: false
2021-08-04 08:02:20 +02:00
IndentCaseBlocks: false
IndentGotoLabels: true
2018-06-09 09:21:30 +02:00
IndentPPDirectives: AfterHash
2021-08-04 08:02:20 +02:00
IndentExternBlock: AfterExternBlock
IndentRequires: false
IndentWidth: 2
IndentWrappedFunctionNames: false
2021-08-04 08:02:20 +02:00
InsertTrailingCommas: None
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: true
2022-04-03 14:36:56 +02:00
LambdaBodyIndentation: Signature
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
2019-01-11 16:11:19 +01:00
ObjCBinPackProtocolList: Auto
ObjCBlockIndentWidth: 2
2021-08-04 08:02:20 +02:00
ObjCBreakBeforeNestedBlockParam: true
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
2017-11-23 06:16:42 +01:00
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
2022-04-03 14:36:56 +02:00
PenaltyBreakOpenParenthesis: 0
PenaltyBreakString: 1000
2019-01-11 16:11:19 +01:00
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 60
2021-08-04 08:02:20 +02:00
PenaltyIndentedWhitespace: 0
PointerAlignment: Right
2022-04-03 14:36:56 +02:00
PPIndentWidth: -1
ReferenceAlignment: Pointer
ReflowComments: true
2022-04-03 14:36:56 +02:00
RemoveBracesLLVM: false
SeparateDefinitionBlocks: Leave
ShortNamespaceLines: 1
SortIncludes: Never
2021-08-04 08:02:20 +02:00
SortJavaStaticImport: Before
2017-11-23 06:16:42 +01:00
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
2019-12-18 06:23:43 +01:00
SpaceAfterLogicalNot: false
2017-04-30 08:45:53 +02:00
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
2021-08-04 08:02:20 +02:00
SpaceBeforeCaseColon: false
2019-01-11 16:11:19 +01:00
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
2022-04-03 14:36:56 +02:00
SpaceBeforeParensOptions:
AfterControlStatements: true
AfterForeachMacros: true
AfterFunctionDefinitionName: false
AfterFunctionDeclarationName: false
AfterIfMacros: true
AfterOverloadedOperator: false
BeforeNonEmptyParentheses: false
2021-08-04 08:02:20 +02:00
SpaceAroundPointerQualifiers: Default
2019-01-11 16:11:19 +01:00
SpaceBeforeRangeBasedForLoopColon: true
2021-08-04 08:02:20 +02:00
SpaceInEmptyBlock: false
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
2022-04-03 14:36:56 +02:00
SpacesInAngles: Never
2021-08-04 08:02:20 +02:00
SpacesInConditionalStatement: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
2022-04-03 14:36:56 +02:00
SpacesInLineCommentPrefix:
Minimum: 1
Maximum: -1
SpacesInParentheses: false
SpacesInSquareBrackets: false
2021-08-04 08:02:20 +02:00
SpaceBeforeSquareBrackets: false
BitFieldColonSpacing: Both
Standard: Latest
2022-04-03 14:36:56 +02:00
StatementAttributeLikeMacros:
- Q_EMIT
2019-12-18 06:23:43 +01:00
StatementMacros:
2019-05-18 03:27:42 +02:00
- Q_UNUSED
- QT_REQUIRE_VERSION
TabWidth: 8
2021-08-04 08:02:20 +02:00
UseCRLF: false
UseTab: Never
2021-08-04 08:02:20 +02:00
WhitespaceSensitiveMacros:
- STRINGIZE
- PP_STRINGIZE
- BOOST_PP_STRINGIZE
- NS_SWIFT_NAME
- CF_SWIFT_NAME
...