X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/59ecf21e36b2332f6adf2a568ef555283d8c119a..d1b1c8d9119229dbeed06cd252917e54a1cb77f6:/lunaix-os/.clang-format diff --git a/lunaix-os/.clang-format b/lunaix-os/.clang-format index 079efc7..240dd9a 100644 --- a/lunaix-os/.clang-format +++ b/lunaix-os/.clang-format @@ -1,137 +1,142 @@ -# --- -# Language: Cpp -# # BasedOnStyle: Mozilla -# AccessModifierOffset: -2 -# AlignAfterOpenBracket: Align -AlignConsecutiveMacros: false -AlignConsecutiveAssignments: false -AlignConsecutiveDeclarations: false -AlignEscapedNewlines: Right -AlignOperands: true -AlignTrailingComments: true -# AllowAllArgumentsOnNextLine: true -# AllowAllConstructorInitializersOnNextLine: true -# AllowAllParametersOfDeclarationOnNextLine: false -AllowShortBlocksOnASingleLine: Never -# AllowShortCaseLabelsOnASingleLine: false -AllowShortFunctionsOnASingleLine: Inline -# AllowShortLambdasOnASingleLine: All -# AllowShortIfStatementsOnASingleLine: Never -# AllowShortLoopsOnASingleLine: false -# AlwaysBreakAfterDefinitionReturnType: TopLevel -AlwaysBreakAfterReturnType: TopLevel -# AlwaysBreakBeforeMultilineStrings: false -AlwaysBreakTemplateDeclarations: Yes -BinPackArguments: false -BinPackParameters: false -BraceWrapping: - AfterCaseLabel: false - AfterClass: true - AfterControlStatement: false - AfterEnum: true - AfterFunction: true - AfterNamespace: false - AfterObjCDeclaration: false - AfterStruct: true - AfterUnion: true - AfterExternBlock: true - BeforeCatch: false - BeforeElse: false - IndentBraces: false - SplitEmptyFunction: true - SplitEmptyRecord: false - SplitEmptyNamespace: true -# BreakBeforeBinaryOperators: None -BreakBeforeBraces: Mozilla -# BreakBeforeInheritanceComma: false -# BreakInheritanceList: BeforeComma -BreakBeforeTernaryOperators: true -# BreakConstructorInitializersBeforeComma: false -# BreakConstructorInitializers: BeforeComma -# BreakAfterJavaFieldAnnotations: false -BreakStringLiterals: true -ColumnLimit: 80 -# CommentPragmas: "^ IWYU pragma:" -# CompactNamespaces: false -# ConstructorInitializerAllOnOneLineOrOnePerLine: false -# ConstructorInitializerIndentWidth: 2 +# # --- +# # Language: Cpp +# # # BasedOnStyle: Mozilla +# # AccessModifierOffset: -2 +# # AlignAfterOpenBracket: Align +# AlignConsecutiveMacros: false +# AlignConsecutiveAssignments: false +# AlignConsecutiveDeclarations: false +# AlignEscapedNewlines: Right +# AlignOperands: true +# AlignTrailingComments: true +# # AllowAllArgumentsOnNextLine: true +# # AllowAllConstructorInitializersOnNextLine: true +# # AllowAllParametersOfDeclarationOnNextLine: false +# AllowShortBlocksOnASingleLine: Never +# # AllowShortCaseLabelsOnASingleLine: false +# AllowShortFunctionsOnASingleLine: Inline +# # AllowShortLambdasOnASingleLine: All +# # AllowShortIfStatementsOnASingleLine: Never +# # AllowShortLoopsOnASingleLine: false +# # AlwaysBreakAfterDefinitionReturnType: TopLevel +# AlwaysBreakAfterReturnType: TopLevel +# # AlwaysBreakBeforeMultilineStrings: false +# AlwaysBreakTemplateDeclarations: Yes +# BinPackArguments: false +# BinPackParameters: false +# BraceWrapping: +# AfterCaseLabel: false +# AfterClass: true +# AfterControlStatement: false +# AfterEnum: true +# AfterFunction: true +# AfterNamespace: false +# AfterObjCDeclaration: false +# AfterStruct: true +# AfterUnion: true +# AfterExternBlock: true +# BeforeCatch: false +# BeforeElse: false +# IndentBraces: false +# SplitEmptyFunction: true +# SplitEmptyRecord: false +# SplitEmptyNamespace: true +# # BreakBeforeBinaryOperators: None +# BreakBeforeBraces: Mozilla +# # BreakBeforeInheritanceComma: false +# # BreakInheritanceList: BeforeComma +# BreakBeforeTernaryOperators: true +# # BreakConstructorInitializersBeforeComma: false +# # BreakConstructorInitializers: BeforeComma +# # BreakAfterJavaFieldAnnotations: false +# BreakStringLiterals: true +# ColumnLimit: 80 +# # CommentPragmas: "^ IWYU pragma:" +# # CompactNamespaces: false +# # ConstructorInitializerAllOnOneLineOrOnePerLine: false +# # ConstructorInitializerIndentWidth: 2 # ContinuationIndentWidth: 2 -# Cpp11BracedListStyle: false -# DeriveLineEnding: true -# DerivePointerAlignment: false -# DisableFormat: false -# ExperimentalAutoDetectBinPacking: false -# FixNamespaceComments: false -ForEachMacros: - - foreach - - Q_FOREACH - - BOOST_FOREACH -# IncludeBlocks: Preserve -# IncludeCategories: -# - Regex: '^"(llvm|llvm-c|clang|clang-c)/' -# Priority: 2 -# SortPriority: 0 -# - Regex: '^(<|"(gtest|gmock|isl|json)/)' -# Priority: 3 -# SortPriority: 0 -# - Regex: ".*" -# Priority: 1 -# SortPriority: 0 -# IncludeIsMainRegex: "(Test)?$" -# IncludeIsMainSourceRegex: "" -IndentCaseLabels: true -IndentGotoLabels: true -IndentPPDirectives: None -IndentWidth: 4 -# IndentWrappedFunctionNames: false -# JavaScriptQuotes: Leave -# JavaScriptWrapImports: true -KeepEmptyLinesAtTheStartOfBlocks: true -# MacroBlockBegin: "" -# MacroBlockEnd: "" -MaxEmptyLinesToKeep: 1 -# NamespaceIndentation: None -# ObjCBinPackProtocolList: Auto -# ObjCBlockIndentWidth: 2 -# ObjCSpaceAfterProperty: true -# ObjCSpaceBeforeProtocolList: false -# PenaltyBreakAssignment: 2 -# PenaltyBreakBeforeFirstCallParameter: 19 -# PenaltyBreakComment: 300 -# PenaltyBreakFirstLessLess: 120 -# PenaltyBreakString: 1000 -# PenaltyBreakTemplateDeclaration: 10 -# PenaltyExcessCharacter: 1000000 -# PenaltyReturnTypeOnItsOwnLine: 200 -PointerAlignment: Left -# ReflowComments: true -SortIncludes: true -# SortUsingDeclarations: true -SpaceAfterCStyleCast: false -SpaceAfterLogicalNot: false -SpaceAfterTemplateKeyword: false -SpaceBeforeAssignmentOperators: true -SpaceBeforeCpp11BracedList: false -SpaceBeforeCtorInitializerColon: true -SpaceBeforeInheritanceColon: true -SpaceBeforeParens: ControlStatements -SpaceBeforeRangeBasedForLoopColon: true -SpaceInEmptyBlock: false -SpaceInEmptyParentheses: false -SpacesBeforeTrailingComments: 1 -SpacesInAngles: false -SpacesInConditionalStatement: false -SpacesInContainerLiterals: true -SpacesInCStyleCastParentheses: false -SpacesInParentheses: false -SpacesInSquareBrackets: false -SpaceBeforeSquareBrackets: false -Standard: Latest -StatementMacros: - - Q_UNUSED - - QT_REQUIRE_VERSION -# TabWidth: 8 -UseCRLF: false -UseTab: Never -# --- +# # Cpp11BracedListStyle: false +# # DeriveLineEnding: true +# # DerivePointerAlignment: false +# # DisableFormat: false +# # ExperimentalAutoDetectBinPacking: false +# # FixNamespaceComments: false +# ForEachMacros: +# - foreach +# - Q_FOREACH +# - BOOST_FOREACH +# # IncludeBlocks: Preserve +# # IncludeCategories: +# # - Regex: '^"(llvm|llvm-c|clang|clang-c)/' +# # Priority: 2 +# # SortPriority: 0 +# # - Regex: '^(<|"(gtest|gmock|isl|json)/)' +# # Priority: 3 +# # SortPriority: 0 +# # - Regex: ".*" +# # Priority: 1 +# # SortPriority: 0 +# # IncludeIsMainRegex: "(Test)?$" +# # IncludeIsMainSourceRegex: "" +# IndentCaseLabels: true +# IndentGotoLabels: true +# IndentPPDirectives: None +# IndentWidth: 4 +# # IndentWrappedFunctionNames: false +# # JavaScriptQuotes: Leave +# # JavaScriptWrapImports: true +# KeepEmptyLinesAtTheStartOfBlocks: true +# # MacroBlockBegin: "" +# # MacroBlockEnd: "" +# MaxEmptyLinesToKeep: 1 +# # NamespaceIndentation: None +# # ObjCBinPackProtocolList: Auto +# # ObjCBlockIndentWidth: 2 +# # ObjCSpaceAfterProperty: true +# # ObjCSpaceBeforeProtocolList: false +# # PenaltyBreakAssignment: 2 +# # PenaltyBreakBeforeFirstCallParameter: 19 +# # PenaltyBreakComment: 300 +# # PenaltyBreakFirstLessLess: 120 +# # PenaltyBreakString: 1000 +# # PenaltyBreakTemplateDeclaration: 10 +# # PenaltyExcessCharacter: 1000000 +# # PenaltyReturnTypeOnItsOwnLine: 200 +# PointerAlignment: Left +# # ReflowComments: true +# SortIncludes: true +# # SortUsingDeclarations: true +# SpaceAfterCStyleCast: false +# SpaceAfterLogicalNot: false +# SpaceAfterTemplateKeyword: false +# SpaceBeforeAssignmentOperators: true +# SpaceBeforeCpp11BracedList: false +# SpaceBeforeCtorInitializerColon: true +# SpaceBeforeInheritanceColon: true +# SpaceBeforeParens: ControlStatements +# SpaceBeforeRangeBasedForLoopColon: true +# SpaceInEmptyBlock: true +# SpaceInEmptyParentheses: false +# SpacesBeforeTrailingComments: 1 +# SpacesInAngles: false +# SpacesInConditionalStatement: false +# SpacesInContainerLiterals: true +# SpacesInCStyleCastParentheses: false +# SpacesInParentheses: false +# SpacesInSquareBrackets: false +# SpaceBeforeSquareBrackets: false +# Standard: Latest +# StatementMacros: +# - Q_UNUSED +# - QT_REQUIRE_VERSION +# TypenameMacros: +# - optimize +# - noret +# - weak +# - weak_alias +# # TabWidth: 8 +# UseCRLF: false +# UseTab: Never +# # ---