Blame .clang-format

Packit Service 3880ab
# SPDX-License-Identifier: GPL-2.0
Packit Service 3880ab
#
Packit Service 3880ab
# clang-format configuration file. Intended for clang-format >= 4.
Packit Service 3880ab
#
Packit Service 3880ab
# For more information, see:
Packit Service 3880ab
#
Packit Service 3880ab
#   Documentation/process/clang-format.rst
Packit Service 3880ab
#   https://clang.llvm.org/docs/ClangFormat.html
Packit Service 3880ab
#   https://clang.llvm.org/docs/ClangFormatStyleOptions.html
Packit Service 3880ab
#
Packit Service 3880ab
---
Packit Service 3880ab
AccessModifierOffset: -4
Packit Service 3880ab
AlignAfterOpenBracket: Align
Packit Service 3880ab
AlignConsecutiveAssignments: false
Packit Service 3880ab
AlignConsecutiveDeclarations: false
Packit Service 3880ab
#AlignEscapedNewlines: Left # Unknown to clang-format-4.0
Packit Service 3880ab
AlignOperands: true
Packit Service 3880ab
AlignTrailingComments: false
Packit Service 3880ab
AllowAllParametersOfDeclarationOnNextLine: false
Packit Service 3880ab
AllowShortBlocksOnASingleLine: false
Packit Service 3880ab
AllowShortCaseLabelsOnASingleLine: false
Packit Service 3880ab
AllowShortFunctionsOnASingleLine: None
Packit Service 3880ab
AllowShortIfStatementsOnASingleLine: false
Packit Service 3880ab
AllowShortLoopsOnASingleLine: false
Packit Service 3880ab
AlwaysBreakAfterDefinitionReturnType: None
Packit Service 3880ab
AlwaysBreakAfterReturnType: None
Packit Service 3880ab
AlwaysBreakBeforeMultilineStrings: false
Packit Service 3880ab
AlwaysBreakTemplateDeclarations: false
Packit Service 3880ab
BinPackArguments: true
Packit Service 3880ab
BinPackParameters: true
Packit Service 3880ab
BraceWrapping:
Packit Service 3880ab
  AfterClass: false
Packit Service 3880ab
  AfterControlStatement: false
Packit Service 3880ab
  AfterEnum: false
Packit Service 3880ab
  AfterFunction: true
Packit Service 3880ab
  AfterNamespace: true
Packit Service 3880ab
  AfterObjCDeclaration: false
Packit Service 3880ab
  AfterStruct: false
Packit Service 3880ab
  AfterUnion: false
Packit Service 3880ab
  #AfterExternBlock: false # Unknown to clang-format-5.0
Packit Service 3880ab
  BeforeCatch: false
Packit Service 3880ab
  BeforeElse: false
Packit Service 3880ab
  IndentBraces: false
Packit Service 3880ab
  #SplitEmptyFunction: true # Unknown to clang-format-4.0
Packit Service 3880ab
  #SplitEmptyRecord: true # Unknown to clang-format-4.0
Packit Service 3880ab
  #SplitEmptyNamespace: true # Unknown to clang-format-4.0
Packit Service 3880ab
BreakBeforeBinaryOperators: None
Packit Service 3880ab
BreakBeforeBraces: Custom
Packit Service 3880ab
#BreakBeforeInheritanceComma: false # Unknown to clang-format-4.0
Packit Service 3880ab
BreakBeforeTernaryOperators: false
Packit Service 3880ab
BreakConstructorInitializersBeforeComma: false
Packit Service 3880ab
#BreakConstructorInitializers: BeforeComma # Unknown to clang-format-4.0
Packit Service 3880ab
BreakAfterJavaFieldAnnotations: false
Packit Service 3880ab
BreakStringLiterals: false
Packit Service 3880ab
ColumnLimit: 80
Packit Service 3880ab
CommentPragmas: '^ IWYU pragma:'
Packit Service 3880ab
#CompactNamespaces: false # Unknown to clang-format-4.0
Packit Service 3880ab
ConstructorInitializerAllOnOneLineOrOnePerLine: false
Packit Service 3880ab
ConstructorInitializerIndentWidth: 8
Packit Service 3880ab
ContinuationIndentWidth: 8
Packit Service 3880ab
Cpp11BracedListStyle: false
Packit Service 3880ab
DerivePointerAlignment: false
Packit Service 3880ab
DisableFormat: false
Packit Service 3880ab
ExperimentalAutoDetectBinPacking: false
Packit Service 3880ab
#FixNamespaceComments: false # Unknown to clang-format-4.0
Packit Service 3880ab
Packit Service 3880ab
# Taken from:
Packit Service 3880ab
#   git grep -h '^#define [^[:space:]]*for_each[^[:space:]]*(' include/ \
Packit Service 3880ab
#   | sed "s,^#define \([^[:space:]]*for_each[^[:space:]]*\)(.*$,  - '\1'," \
Packit Service 3880ab
#   | sort | uniq
Packit Service 3880ab
ForEachMacros:
Packit Service 3880ab
  - 'list_for_each_entry'
Packit Service 3880ab
  - 'list_for_each_entry_safe'
Packit Service 3880ab
  - 'mnl_attr_for_each_nested'
Packit Service 3880ab
  - 'hlist_for_each'
Packit Service 3880ab
  - 'hlist_for_each_safe'
Packit Service 3880ab
  - 'hlist_for_each_entry'
Packit Service 3880ab
Packit Service 3880ab
#IncludeBlocks: Preserve # Unknown to clang-format-5.0
Packit Service 3880ab
IncludeCategories:
Packit Service 3880ab
  - Regex: '.*'
Packit Service 3880ab
    Priority: 1
Packit Service 3880ab
IncludeIsMainRegex: '(Test)?$'
Packit Service 3880ab
IndentCaseLabels: false
Packit Service 3880ab
#IndentPPDirectives: None # Unknown to clang-format-5.0
Packit Service 3880ab
IndentWidth: 8
Packit Service 3880ab
IndentWrappedFunctionNames: false
Packit Service 3880ab
JavaScriptQuotes: Leave
Packit Service 3880ab
JavaScriptWrapImports: true
Packit Service 3880ab
KeepEmptyLinesAtTheStartOfBlocks: false
Packit Service 3880ab
MacroBlockBegin: ''
Packit Service 3880ab
MacroBlockEnd: ''
Packit Service 3880ab
MaxEmptyLinesToKeep: 1
Packit Service 3880ab
NamespaceIndentation: Inner
Packit Service 3880ab
#ObjCBinPackProtocolList: Auto # Unknown to clang-format-5.0
Packit Service 3880ab
ObjCBlockIndentWidth: 8
Packit Service 3880ab
ObjCSpaceAfterProperty: true
Packit Service 3880ab
ObjCSpaceBeforeProtocolList: true
Packit Service 3880ab
Packit Service 3880ab
# Taken from git's rules
Packit Service 3880ab
#PenaltyBreakAssignment: 10 # Unknown to clang-format-4.0
Packit Service 3880ab
PenaltyBreakBeforeFirstCallParameter: 30
Packit Service 3880ab
PenaltyBreakComment: 10
Packit Service 3880ab
PenaltyBreakFirstLessLess: 0
Packit Service 3880ab
PenaltyBreakString: 10
Packit Service 3880ab
PenaltyExcessCharacter: 100
Packit Service 3880ab
PenaltyReturnTypeOnItsOwnLine: 60
Packit Service 3880ab
Packit Service 3880ab
PointerAlignment: Right
Packit Service 3880ab
ReflowComments: false
Packit Service 3880ab
SortIncludes: false
Packit Service 3880ab
#SortUsingDeclarations: false # Unknown to clang-format-4.0
Packit Service 3880ab
SpaceAfterCStyleCast: false
Packit Service 3880ab
SpaceAfterTemplateKeyword: true
Packit Service 3880ab
SpaceBeforeAssignmentOperators: true
Packit Service 3880ab
#SpaceBeforeCtorInitializerColon: true # Unknown to clang-format-5.0
Packit Service 3880ab
#SpaceBeforeInheritanceColon: true # Unknown to clang-format-5.0
Packit Service 3880ab
SpaceBeforeParens: ControlStatements
Packit Service 3880ab
#SpaceBeforeRangeBasedForLoopColon: true # Unknown to clang-format-5.0
Packit Service 3880ab
SpaceInEmptyParentheses: false
Packit Service 3880ab
SpacesBeforeTrailingComments: 1
Packit Service 3880ab
SpacesInAngles: false
Packit Service 3880ab
SpacesInContainerLiterals: false
Packit Service 3880ab
SpacesInCStyleCastParentheses: false
Packit Service 3880ab
SpacesInParentheses: false
Packit Service 3880ab
SpacesInSquareBrackets: false
Packit Service 3880ab
Standard: Cpp03
Packit Service 3880ab
TabWidth: 8
Packit Service 3880ab
UseTab: Always
Packit Service 3880ab
...