# C/C++ code formatting configuration for ulak # Based on PostgreSQL coding standards Language: Cpp BasedOnStyle: LLVM # Indentation IndentWidth: 4 TabWidth: 4 UseTab: Never ContinuationIndentWidth: 4 # Braces BraceWrapping: AfterClass: false AfterControlStatement: false AfterEnum: false AfterFunction: true AfterNamespace: false AfterObjCDeclaration: false AfterStruct: false AfterUnion: false BeforeCatch: false BeforeElse: false IndentBraces: false # Spaces SpacesInParentheses: false SpacesInSquareBrackets: false SpacesInAngles: false # Line breaks AllowShortIfStatementsOnASingleLine: false AllowShortLoopsOnASingleLine: false AlwaysBreakAfterDefinitionReturnType: None AlwaysBreakAfterReturnType: None AlwaysBreakBeforeMultilineStrings: false BreakBeforeBinaryOperators: None BreakBeforeTernaryOperators: true BreakStringLiterals: true # Column limit ColumnLimit: 100 # Includes IncludeCategories: - Regex: '^<.*\.h>' Priority: 1 - Regex: '^".*\.h"' Priority: 2 SortIncludes: true # Pointer alignment PointerAlignment: Right # Comments ReflowComments: true CommentPragmas: ".*" # Other AlignAfterOpenBracket: Align AlignConsecutiveAssignments: false AlignConsecutiveDeclarations: false AlignEscapedNewlines: Right AlignOperands: true AlignTrailingComments: true AllowAllParametersOfDeclarationOnNextLine: true BinPackArguments: true BinPackParameters: true ConstructorInitializerAllOnOneLineOrOnePerLine: false DerivePointerAlignment: false ExperimentalAutoDetectBinPacking: false ForEachMacros: [foreach, Q_FOREACH, BOOST_FOREACH] IncludeIsMainRegex: "([-_](test|unittest))?$" IndentCaseLabels: false IndentWrappedFunctionNames: false MacroBlockBegin: "" MacroBlockEnd: "" MaxEmptyLinesToKeep: 1 NamespaceIndentation: None ObjCBlockIndentWidth: 2 ObjCSpaceAfterProperty: false ObjCSpaceBeforeProtocolList: true PenaltyBreakBeforeFirstCallParameter: 19 PenaltyBreakComment: 300 PenaltyBreakFirstLessLess: 120 PenaltyBreakString: 1000 PenaltyExcessCharacter: 1000000 PenaltyReturnTypeOnItsOwnLine: 60 SpaceAfterCStyleCast: false SpaceBeforeAssignmentOperators: true SpaceBeforeParens: ControlStatements SpaceInEmptyParentheses: false SpacesBeforeTrailingComments: 1 Standard: Cpp11