github.com/cilium/cilium@v1.16.2/.clang-format (about) 1 # Configuration file for clang-format. 2 # Intended for clang-format >= 15. 3 # 4 # The list and meaning of the options is available at: 5 # 6 # https://clang.llvm.org/docs/ClangFormatStyleOptions.html 7 --- 8 # BasedOnStyle # No base style in use 9 # AccessModifierOffset # We don't use access modifiers 10 AlignAfterOpenBracket: Align 11 AlignArrayOfStructures: Left 12 AlignConsecutiveAssignments: false 13 AlignConsecutiveBitFields: 14 Enabled: true 15 AcrossEmptyLines: true 16 AcrossComments: true 17 AlignConsecutiveDeclarations: false 18 AlignConsecutiveMacros: 19 Enabled: true 20 AcrossEmptyLines: true 21 AcrossComments: true 22 AlignEscapedNewlines: Left 23 AlignOperands: true 24 AlignTrailingComments: true 25 AllowAllArgumentsOnNextLine: false 26 # AllowAllConstructorInitializersOnNextLine # Deprecated 27 AllowAllParametersOfDeclarationOnNextLine: false 28 AllowShortBlocksOnASingleLine: Never 29 AllowShortCaseLabelsOnASingleLine: false 30 AllowShortEnumsOnASingleLine: false 31 AllowShortFunctionsOnASingleLine: None 32 AllowShortIfStatementsOnASingleLine: Never 33 # AllowShortLambdasOnASingleLine # We don't use lambdas 34 AllowShortLoopsOnASingleLine: false 35 # AlwaysBreakAfterDefinitionReturnType # Deprecated 36 AlwaysBreakAfterReturnType: None 37 AlwaysBreakBeforeMultilineStrings: false 38 # AlwaysBreakTemplateDeclarations # We don't use templates 39 # AttributeMacros # Unused at this time 40 BinPackArguments: true 41 BinPackParameters: true 42 BitFieldColonSpacing: None 43 BraceWrapping: 44 AfterCaseLabel: true 45 # AfterClass # We don't use classes 46 AfterControlStatement: Never 47 AfterEnum: false 48 AfterFunction: true 49 # AfterNamespace # We don't use namespaces 50 # AfterObjCDeclaration # We don't use ObjC 51 AfterStruct: false 52 AfterUnion: false 53 AfterExternBlock: false 54 # BeforeCatch # We don't use try/catch 55 BeforeElse: false 56 # BeforeLambdaBody # We don't use lambdas 57 BeforeWhile: false 58 IndentBraces: false 59 SplitEmptyFunction: true 60 SplitEmptyRecord: true 61 # SplitEmptyNamespace # We don't use namespaces 62 # BreakAfterJavaFieldAnnotations # We don't use Java 63 BreakBeforeBinaryOperators: None 64 BreakBeforeBraces: Custom 65 # BreakBeforeConceptDeclarations # We don't use concepts 66 BreakBeforeTernaryOperators: false 67 # BreakConstructorInitializers # We don't use constructors 68 # BreakInheritanceList # We don't use inheritance 69 BreakStringLiterals: false 70 ColumnLimit: 80 71 # CommentPragmas # Unused at this time 72 # CompactNamespaces # We don't use namespaces 73 # ConstructorInitializerAllOnOneLineOrOnePerLine # Deprecated 74 # ConstructorInitializerIndentWidth # We don't use constructors 75 ContinuationIndentWidth: 8 76 Cpp11BracedListStyle: false 77 # DeriveLineEnding # Deprecated 78 DerivePointerAlignment: false 79 DisableFormat: false 80 # EmptyLineAfterAccessModifier # We don't use access modifiers 81 # EmptyLineBeforeAccessModifier # We don't use access modifiers 82 # ExperimentalAutoDetectBinPacking # Experimental, "Use at your own risk" 83 # FixNamespaceComments # We don't use namespaces 84 # ForEachMacros # Unused at this time 85 # IfMacros # Unused at this time 86 IncludeBlocks: Preserve 87 # IncludeCategories # Unused at this time 88 # IncludeIsMainRegex # Unused at this time 89 # IncludeIsMainSourceRegex # Unused at this time 90 # IndentAccessModifiers # We don't use access modifiers 91 IndentCaseBlocks: false 92 IndentCaseLabels: false 93 # IndentExternBlock # We don't use extern blocks 94 IndentGotoLabels: false 95 IndentPPDirectives: AfterHash 96 # IndentRequiresClause # We don't use equire clauses 97 IndentWidth: 8 98 IndentWrappedFunctionNames: false 99 InsertBraces: false 100 # InsertTrailingCommas # We don't use JavaScript 101 # JavaImportGroups # We don't use Java 102 # JavaScriptQuotes # We don't use JavaScript 103 # JavaScriptWrapImports # We don't use JavaScript 104 KeepEmptyLinesAtTheStartOfBlocks: false 105 # LambdaBodyIndentation # We don't use lambdas 106 Language: Cpp 107 # MacroBlockBegin # Unused at this time 108 # MacroBlockEnd # Unused at this time 109 MaxEmptyLinesToKeep: 1 110 # NamespaceIndentation # We don't use namespaces 111 # NamespaceMacros # We don't use namespaces 112 # ObjCBinPackProtocolList # We don't use ObjC 113 # ObjCBlockIndentWidth # We don't use ObjC 114 # ObjCBreakBeforeNestedBlockParam # We don't use ObjC 115 # ObjCSpaceAfterProperty # We don't use ObjC 116 # ObjCSpaceBeforeProtocolList # We don't use ObjC 117 PPIndentWidth: 1 118 # PackConstructorInitializers # We don't use constructors 119 120 # Penalties decide in what order (weighting) things should be done if a line is 121 # too long: 100 = try everything else before this. 122 # See https://stackoverflow.com/a/46749925 123 PenaltyBreakAssignment: 10 124 PenaltyBreakBeforeFirstCallParameter: 0 125 PenaltyBreakComment: 0 126 PenaltyBreakFirstLessLess: 0 127 PenaltyBreakOpenParenthesis: 100 128 PenaltyBreakString: 10 129 # PenaltyBreakTemplateDeclaration # We don't use templates 130 PenaltyExcessCharacter: 100 131 PenaltyIndentedWhitespace: 100 132 PenaltyReturnTypeOnItsOwnLine: 100 133 134 PointerAlignment: Right 135 QualifierAlignment: Leave 136 # QualifierOrder # Unused at this time 137 # RawStringFormats # Unused at this time 138 # ReferenceAlignment # We don't use references 139 ReflowComments: false 140 RemoveBracesLLVM: false 141 # RequiresClausePosition # We don't use require clauses 142 SeparateDefinitionBlocks: Leave 143 # ShortNamespaceLines # We don't use namespaces 144 SortIncludes: Never 145 # SortJavaStaticImport # We don't use Java 146 # SortUsingDeclarations # We don't use using declarations 147 SpaceAfterCStyleCast: false 148 SpaceAfterLogicalNot: false 149 # SpaceAfterTemplateKeyword # We don't use templates 150 SpaceAroundPointerQualifiers: Default 151 SpaceBeforeAssignmentOperators: true 152 SpaceBeforeCaseColon: false 153 # SpaceBeforeCpp11BracedList # We don't use C++11 braced lists to initialize objects 154 # SpaceBeforeCtorInitializerColon # We don't use constructors 155 # SpaceBeforeInheritanceColon # We don't use inheritance 156 SpaceBeforeParens: ControlStatements 157 # SpaceBeforeParensOptions # No need for custom SpaceBeforeParens options 158 # SpaceBeforeRangeBasedForLoopColon # We don't use range-based for loops 159 SpaceBeforeSquareBrackets: false 160 SpaceInEmptyBlock: false 161 SpaceInEmptyParentheses: false 162 SpacesBeforeTrailingComments: 1 163 # SpacesInAngles # We don't use templates 164 SpacesInCStyleCastParentheses: false 165 SpacesInConditionalStatement: false 166 SpacesInContainerLiterals: false 167 SpacesInLineCommentPrefix: 168 Minimum: 1 169 Maximum: 1 170 SpacesInParentheses: false 171 SpacesInSquareBrackets: false 172 Standard: C++03 173 # StatementAttributeLikeMacros # Unused at this time 174 # StatementMacros # Unused at this time 175 TabWidth: 8 176 # TypenameMacros # Unused at this time 177 # UseCRLF # Deprecated 178 UseTab: Always 179 # WhitespaceSensitiveMacros # Unused at this time 180 ...