diff options
author | rtk0c <[email protected]> | 2025-04-21 14:35:44 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2025-04-21 14:35:44 -0700 |
commit | 75585f4fb6f312195a47b16224d45e671858dac7 (patch) | |
tree | 3076d8560c74fc3df2178393e796f01459ed731e /.clang-format | |
parent | 61db693beadde269b74656d5bed8472c3114b6d3 (diff) |
Initial xmake C++ project
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..768d40f --- /dev/null +++ b/.clang-format @@ -0,0 +1,61 @@ +--- +BasedOnStyle: LLVM +AccessModifierOffset: -4 +AlignAfterOpenBracket: DontAlign +AlignOperands: false +AlignTrailingComments: false +AllowAllParametersOfDeclarationOnNextLine: true +AllowAllArgumentsOnNextLine: true +AllowShortBlocksOnASingleLine: Always +AllowShortCaseLabelsOnASingleLine: true +AllowShortFunctionsOnASingleLine: Inline +AllowShortIfStatementsOnASingleLine: true +AllowShortLoopsOnASingleLine: false +AlwaysBreakAfterDefinitionReturnType: None +AlwaysBreakAfterReturnType: None +AlwaysBreakBeforeMultilineStrings: false +AlwaysBreakTemplateDeclarations: MultiLine +BinPackArguments: false +BinPackParameters: false +BraceWrapping: + AfterClass: false + AfterControlStatement: MultiLine + AfterEnum: false + AfterFunction: false + AfterNamespace: false + AfterObjCDeclaration: false + AfterStruct: false + AfterUnion: false + AfterExternBlock: false + BeforeCatch: false + BeforeElse: false + IndentBraces: false + SplitEmptyFunction: false + SplitEmptyRecord: true + SplitEmptyNamespace: true +BreakBeforeBinaryOperators: None +BreakBeforeBraces: Custom +BreakBeforeTernaryOperators: true +BreakConstructorInitializers: BeforeComma +ColumnLimit: 0 +ConstructorInitializerAllOnOneLineOrOnePerLine: true +ConstructorInitializerIndentWidth: 4 +ContinuationIndentWidth: 4 +Cpp11BracedListStyle: false +IncludeCategories: + - Regex: '".*"' + Priority: 1 + - Regex: '^<.*\.h>' + Priority: 2 + - Regex: '^<.*' + Priority: 3 +IndentCaseLabels: true +IndentPPDirectives: AfterHash +IndentWidth: 4 +NamespaceIndentation: None +PointerAlignment: Left +TabWidth: 4 +UseTab: Never +--- +Language: Cpp +Standard: Latest |