diff options
| author | Rutger Broekhoff | 2026-08-28 21:12:55 +0200 |
|---|---|---|
| committer | Rutger Broekhoff | 2026-08-28 21:12:55 +0200 |
| commit | a5d95afb96eb9a3b65d82f5f84bf8e4a4fb4c8ac (patch) | |
| tree | b4e0ec57c3799e9f649c6bfe27cb6c3313b97364 /server/.clang-format | |
| parent | 973aec43ea54bbf95b64fbcb636403401d1ca60e (diff) | |
| download | routemon-a5d95afb96eb9a3b65d82f5f84bf8e4a4fb4c8ac.tar.gz routemon-a5d95afb96eb9a3b65d82f5f84bf8e4a4fb4c8ac.zip | |
clang-format C++ sources
Diffstat (limited to 'server/.clang-format')
| -rw-r--r-- | server/.clang-format | 321 |
1 files changed, 321 insertions, 0 deletions
diff --git a/server/.clang-format b/server/.clang-format new file mode 100644 index 0000000..8e74797 --- /dev/null +++ b/server/.clang-format | |||
| @@ -0,0 +1,321 @@ | |||
| 1 | --- | ||
| 2 | Language: Cpp | ||
| 3 | AlignAfterOpenBracket: true | ||
| 4 | AccessModifierOffset: -2 | ||
| 5 | AlignArrayOfStructures: None | ||
| 6 | AlignConsecutiveAssignments: | ||
| 7 | Enabled: false | ||
| 8 | AcrossEmptyLines: false | ||
| 9 | AcrossComments: false | ||
| 10 | AlignCompound: false | ||
| 11 | AlignFunctionDeclarations: false | ||
| 12 | AlignFunctionPointers: false | ||
| 13 | PadOperators: true | ||
| 14 | AlignConsecutiveBitFields: | ||
| 15 | Enabled: false | ||
| 16 | AcrossEmptyLines: false | ||
| 17 | AcrossComments: false | ||
| 18 | AlignCompound: false | ||
| 19 | AlignFunctionDeclarations: false | ||
| 20 | AlignFunctionPointers: false | ||
| 21 | PadOperators: false | ||
| 22 | AlignConsecutiveDeclarations: | ||
| 23 | Enabled: false | ||
| 24 | AcrossEmptyLines: false | ||
| 25 | AcrossComments: false | ||
| 26 | AlignCompound: false | ||
| 27 | AlignFunctionDeclarations: true | ||
| 28 | AlignFunctionPointers: false | ||
| 29 | PadOperators: false | ||
| 30 | AlignConsecutiveMacros: | ||
| 31 | Enabled: false | ||
| 32 | AcrossEmptyLines: false | ||
| 33 | AcrossComments: false | ||
| 34 | AlignCompound: false | ||
| 35 | AlignFunctionDeclarations: false | ||
| 36 | AlignFunctionPointers: false | ||
| 37 | PadOperators: false | ||
| 38 | AlignConsecutiveShortCaseStatements: | ||
| 39 | Enabled: false | ||
| 40 | AcrossEmptyLines: false | ||
| 41 | AcrossComments: false | ||
| 42 | AlignCaseArrows: false | ||
| 43 | AlignCaseColons: false | ||
| 44 | AlignConsecutiveTableGenBreakingDAGArgColons: | ||
| 45 | Enabled: false | ||
| 46 | AcrossEmptyLines: false | ||
| 47 | AcrossComments: false | ||
| 48 | AlignCompound: false | ||
| 49 | AlignFunctionDeclarations: false | ||
| 50 | AlignFunctionPointers: false | ||
| 51 | PadOperators: false | ||
| 52 | AlignConsecutiveTableGenCondOperatorColons: | ||
| 53 | Enabled: false | ||
| 54 | AcrossEmptyLines: false | ||
| 55 | AcrossComments: false | ||
| 56 | AlignCompound: false | ||
| 57 | AlignFunctionDeclarations: false | ||
| 58 | AlignFunctionPointers: false | ||
| 59 | PadOperators: false | ||
| 60 | AlignConsecutiveTableGenDefinitionColons: | ||
| 61 | Enabled: false | ||
| 62 | AcrossEmptyLines: false | ||
| 63 | AcrossComments: false | ||
| 64 | AlignCompound: false | ||
| 65 | AlignFunctionDeclarations: false | ||
| 66 | AlignFunctionPointers: false | ||
| 67 | PadOperators: false | ||
| 68 | AlignEscapedNewlines: Right | ||
| 69 | AlignOperands: Align | ||
| 70 | AlignTrailingComments: | ||
| 71 | AlignPPAndNotPP: true | ||
| 72 | Kind: Always | ||
| 73 | OverEmptyLines: 0 | ||
| 74 | AllowAllArgumentsOnNextLine: true | ||
| 75 | AllowAllParametersOfDeclarationOnNextLine: true | ||
| 76 | AllowBreakBeforeNoexceptSpecifier: Never | ||
| 77 | AllowBreakBeforeQtProperty: false | ||
| 78 | AllowShortBlocksOnASingleLine: Never | ||
| 79 | AllowShortCaseExpressionOnASingleLine: true | ||
| 80 | AllowShortCaseLabelsOnASingleLine: false | ||
| 81 | AllowShortCompoundRequirementOnASingleLine: true | ||
| 82 | AllowShortEnumsOnASingleLine: true | ||
| 83 | AllowShortFunctionsOnASingleLine: All | ||
| 84 | AllowShortIfStatementsOnASingleLine: Never | ||
| 85 | AllowShortLambdasOnASingleLine: All | ||
| 86 | AllowShortLoopsOnASingleLine: false | ||
| 87 | AllowShortNamespacesOnASingleLine: false | ||
| 88 | AlwaysBreakAfterDefinitionReturnType: None | ||
| 89 | AlwaysBreakBeforeMultilineStrings: false | ||
| 90 | AttributeMacros: | ||
| 91 | - __capability | ||
| 92 | BinPackArguments: true | ||
| 93 | BinPackLongBracedList: true | ||
| 94 | BinPackParameters: BinPack | ||
| 95 | BitFieldColonSpacing: Both | ||
| 96 | BracedInitializerIndentWidth: -1 | ||
| 97 | BraceWrapping: | ||
| 98 | AfterCaseLabel: true | ||
| 99 | AfterClass: true | ||
| 100 | AfterControlStatement: Always | ||
| 101 | AfterEnum: true | ||
| 102 | AfterExternBlock: true | ||
| 103 | AfterFunction: true | ||
| 104 | AfterNamespace: false | ||
| 105 | AfterObjCDeclaration: true | ||
| 106 | AfterStruct: true | ||
| 107 | AfterUnion: true | ||
| 108 | BeforeCatch: true | ||
| 109 | BeforeElse: true | ||
| 110 | BeforeLambdaBody: true | ||
| 111 | BeforeWhile: true | ||
| 112 | IndentBraces: false | ||
| 113 | SplitEmptyFunction: true | ||
| 114 | SplitEmptyRecord: true | ||
| 115 | SplitEmptyNamespace: true | ||
| 116 | BreakAdjacentStringLiterals: true | ||
| 117 | BreakAfterAttributes: Leave | ||
| 118 | BreakAfterJavaFieldAnnotations: false | ||
| 119 | BreakAfterOpenBracketBracedList: true | ||
| 120 | BreakAfterOpenBracketFunction: true | ||
| 121 | BreakAfterOpenBracketIf: false | ||
| 122 | BreakAfterOpenBracketLoop: false | ||
| 123 | BreakAfterOpenBracketSwitch: false | ||
| 124 | BreakAfterReturnType: None | ||
| 125 | BreakArrays: true | ||
| 126 | BreakBeforeBinaryOperators: NonAssignment | ||
| 127 | BreakBeforeCloseBracketBracedList: true | ||
| 128 | BreakBeforeCloseBracketFunction: false | ||
| 129 | BreakBeforeCloseBracketIf: false | ||
| 130 | BreakBeforeCloseBracketLoop: false | ||
| 131 | BreakBeforeCloseBracketSwitch: false | ||
| 132 | BreakBeforeConceptDeclarations: Always | ||
| 133 | BreakBeforeBraces: Custom | ||
| 134 | BreakBeforeInlineASMColon: OnlyMultiline | ||
| 135 | BreakBeforeTemplateCloser: false | ||
| 136 | BreakBeforeTernaryOperators: true | ||
| 137 | BreakBinaryOperations: Never | ||
| 138 | BreakConstructorInitializers: BeforeColon | ||
| 139 | BreakFunctionDefinitionParameters: false | ||
| 140 | BreakInheritanceList: BeforeColon | ||
| 141 | BreakStringLiterals: true | ||
| 142 | BreakTemplateDeclarations: Yes | ||
| 143 | ColumnLimit: 80 | ||
| 144 | CommentPragmas: '^ IWYU pragma:' | ||
| 145 | CompactNamespaces: false | ||
| 146 | ConstructorInitializerIndentWidth: 2 | ||
| 147 | ContinuationIndentWidth: 2 | ||
| 148 | Cpp11BracedListStyle: AlignFirstComment | ||
| 149 | DerivePointerAlignment: false | ||
| 150 | DisableFormat: false | ||
| 151 | EmptyLineAfterAccessModifier: Never | ||
| 152 | EmptyLineBeforeAccessModifier: LogicalBlock | ||
| 153 | EnumTrailingComma: Leave | ||
| 154 | ExperimentalAutoDetectBinPacking: false | ||
| 155 | FixNamespaceComments: true | ||
| 156 | ForEachMacros: | ||
| 157 | - foreach | ||
| 158 | - Q_FOREACH | ||
| 159 | - BOOST_FOREACH | ||
| 160 | IfMacros: | ||
| 161 | - KJ_IF_MAYBE | ||
| 162 | IncludeBlocks: Preserve | ||
| 163 | IncludeCategories: | ||
| 164 | - Regex: '^"(llvm|llvm-c|clang|clang-c)/' | ||
| 165 | Priority: 2 | ||
| 166 | SortPriority: 0 | ||
| 167 | CaseSensitive: false | ||
| 168 | - Regex: '^(<|"(gtest|gmock|isl|json)/)' | ||
| 169 | Priority: 3 | ||
| 170 | SortPriority: 0 | ||
| 171 | CaseSensitive: false | ||
| 172 | - Regex: '.*' | ||
| 173 | Priority: 1 | ||
| 174 | SortPriority: 0 | ||
| 175 | CaseSensitive: false | ||
| 176 | IncludeIsMainRegex: '(Test)?$' | ||
| 177 | IncludeIsMainSourceRegex: '' | ||
| 178 | IndentAccessModifiers: false | ||
| 179 | IndentCaseBlocks: false | ||
| 180 | IndentCaseLabels: false | ||
| 181 | IndentExportBlock: true | ||
| 182 | IndentExternBlock: AfterExternBlock | ||
| 183 | IndentGotoLabels: true | ||
| 184 | IndentPPDirectives: None | ||
| 185 | IndentRequiresClause: true | ||
| 186 | IndentWidth: 2 | ||
| 187 | IndentWrappedFunctionNames: false | ||
| 188 | InsertBraces: false | ||
| 189 | InsertNewlineAtEOF: false | ||
| 190 | InsertTrailingCommas: None | ||
| 191 | IntegerLiteralSeparator: | ||
| 192 | Binary: 0 | ||
| 193 | BinaryMinDigitsInsert: 0 | ||
| 194 | BinaryMaxDigitsRemove: 0 | ||
| 195 | Decimal: 0 | ||
| 196 | DecimalMinDigitsInsert: 0 | ||
| 197 | DecimalMaxDigitsRemove: 0 | ||
| 198 | Hex: 0 | ||
| 199 | HexMinDigitsInsert: 0 | ||
| 200 | HexMaxDigitsRemove: 0 | ||
| 201 | BinaryMinDigits: 0 | ||
| 202 | DecimalMinDigits: 0 | ||
| 203 | HexMinDigits: 0 | ||
| 204 | JavaScriptQuotes: Leave | ||
| 205 | JavaScriptWrapImports: true | ||
| 206 | KeepEmptyLines: | ||
| 207 | AtEndOfFile: false | ||
| 208 | AtStartOfBlock: true | ||
| 209 | AtStartOfFile: true | ||
| 210 | KeepFormFeed: false | ||
| 211 | LambdaBodyIndentation: Signature | ||
| 212 | LineEnding: DeriveLF | ||
| 213 | MacroBlockBegin: '' | ||
| 214 | MacroBlockEnd: '' | ||
| 215 | MainIncludeChar: Quote | ||
| 216 | MaxEmptyLinesToKeep: 1 | ||
| 217 | NamespaceIndentation: None | ||
| 218 | NumericLiteralCase: | ||
| 219 | ExponentLetter: Leave | ||
| 220 | HexDigit: Leave | ||
| 221 | Prefix: Leave | ||
| 222 | Suffix: Leave | ||
| 223 | ObjCBinPackProtocolList: Auto | ||
| 224 | ObjCBlockIndentWidth: 2 | ||
| 225 | ObjCBreakBeforeNestedBlockParam: true | ||
| 226 | ObjCSpaceAfterProperty: false | ||
| 227 | ObjCSpaceBeforeProtocolList: true | ||
| 228 | OneLineFormatOffRegex: '' | ||
| 229 | PackConstructorInitializers: BinPack | ||
| 230 | PenaltyBreakAssignment: 2 | ||
| 231 | PenaltyBreakBeforeFirstCallParameter: 19 | ||
| 232 | PenaltyBreakBeforeMemberAccess: 150 | ||
| 233 | PenaltyBreakComment: 300 | ||
| 234 | PenaltyBreakFirstLessLess: 120 | ||
| 235 | PenaltyBreakOpenParenthesis: 0 | ||
| 236 | PenaltyBreakScopeResolution: 500 | ||
| 237 | PenaltyBreakString: 1000 | ||
| 238 | PenaltyBreakTemplateDeclaration: 10 | ||
| 239 | PenaltyExcessCharacter: 1000000 | ||
| 240 | PenaltyIndentedWhitespace: 0 | ||
| 241 | PenaltyReturnTypeOnItsOwnLine: 60 | ||
| 242 | PointerAlignment: Left | ||
| 243 | PPIndentWidth: -1 | ||
| 244 | QualifierAlignment: Leave | ||
| 245 | ReferenceAlignment: Pointer | ||
| 246 | ReflowComments: Always | ||
| 247 | RemoveBracesLLVM: false | ||
| 248 | RemoveEmptyLinesInUnwrappedLines: false | ||
| 249 | RemoveParentheses: Leave | ||
| 250 | RemoveSemicolon: false | ||
| 251 | RequiresClausePosition: OwnLine | ||
| 252 | RequiresExpressionIndentation: OuterScope | ||
| 253 | SeparateDefinitionBlocks: Leave | ||
| 254 | ShortNamespaceLines: 1 | ||
| 255 | SkipMacroDefinitionBody: false | ||
| 256 | SortIncludes: | ||
| 257 | Enabled: true | ||
| 258 | IgnoreCase: false | ||
| 259 | IgnoreExtension: false | ||
| 260 | SortJavaStaticImport: Before | ||
| 261 | SortUsingDeclarations: LexicographicNumeric | ||
| 262 | SpaceAfterCStyleCast: false | ||
| 263 | SpaceAfterLogicalNot: false | ||
| 264 | SpaceAfterOperatorKeyword: false | ||
| 265 | SpaceAfterTemplateKeyword: true | ||
| 266 | SpaceAroundPointerQualifiers: Default | ||
| 267 | SpaceBeforeAssignmentOperators: true | ||
| 268 | SpaceBeforeCaseColon: false | ||
| 269 | SpaceBeforeCpp11BracedList: false | ||
| 270 | SpaceBeforeCtorInitializerColon: true | ||
| 271 | SpaceBeforeInheritanceColon: true | ||
| 272 | SpaceBeforeJsonColon: false | ||
| 273 | SpaceBeforeParens: ControlStatements | ||
| 274 | SpaceBeforeParensOptions: | ||
| 275 | AfterControlStatements: true | ||
| 276 | AfterForeachMacros: true | ||
| 277 | AfterFunctionDefinitionName: false | ||
| 278 | AfterFunctionDeclarationName: false | ||
| 279 | AfterIfMacros: true | ||
| 280 | AfterNot: false | ||
| 281 | AfterOverloadedOperator: false | ||
| 282 | AfterPlacementOperator: true | ||
| 283 | AfterRequiresInClause: false | ||
| 284 | AfterRequiresInExpression: false | ||
| 285 | BeforeNonEmptyParentheses: false | ||
| 286 | SpaceBeforeRangeBasedForLoopColon: true | ||
| 287 | SpaceBeforeSquareBrackets: false | ||
| 288 | SpaceInEmptyBraces: Never | ||
| 289 | SpacesBeforeTrailingComments: 1 | ||
| 290 | SpacesInAngles: Never | ||
| 291 | SpacesInContainerLiterals: true | ||
| 292 | SpacesInLineCommentPrefix: | ||
| 293 | Minimum: 1 | ||
| 294 | Maximum: -1 | ||
| 295 | SpacesInParens: Never | ||
| 296 | SpacesInParensOptions: | ||
| 297 | ExceptDoubleParentheses: false | ||
| 298 | InCStyleCasts: false | ||
| 299 | InConditionalStatements: false | ||
| 300 | InEmptyParentheses: false | ||
| 301 | Other: false | ||
| 302 | SpacesInSquareBrackets: false | ||
| 303 | Standard: Latest | ||
| 304 | StatementAttributeLikeMacros: | ||
| 305 | - Q_EMIT | ||
| 306 | StatementMacros: | ||
| 307 | - Q_UNUSED | ||
| 308 | - QT_REQUIRE_VERSION | ||
| 309 | TableGenBreakInsideDAGArg: DontBreak | ||
| 310 | TabWidth: 8 | ||
| 311 | UseTab: Never | ||
| 312 | VerilogBreakBetweenInstancePorts: true | ||
| 313 | WhitespaceSensitiveMacros: | ||
| 314 | - BOOST_PP_STRINGIZE | ||
| 315 | - CF_SWIFT_NAME | ||
| 316 | - NS_SWIFT_NAME | ||
| 317 | - PP_STRINGIZE | ||
| 318 | - STRINGIZE | ||
| 319 | WrapNamespaceBodyWithEmptyLines: Leave | ||
| 320 | ... | ||
| 321 | |||