BasedOnStyle: LLVM Language: Cpp IndentWidth: 4 TabWidth: 4 UseTab: Never ContinuationIndentWidth: 4 IndentCaseLabels: true IndentPPDirectives: None # keep existing line breaks, don't rewrap ColumnLimit: 0 MaxEmptyLinesToKeep: 2 KeepEmptyLinesAtTheStartOfBlocks: false # function braces on their own line, everything else attached BreakBeforeBraces: Linux AlwaysBreakAfterReturnType: None AllowShortFunctionsOnASingleLine: Inline AllowShortIfStatementsOnASingleLine: Never AllowShortLoopsOnASingleLine: false AllowShortBlocksOnASingleLine: Never SpaceBeforeParens: Custom SpaceBeforeParensOptions: AfterControlStatements: true AfterForeachMacros: false PointerAlignment: Right DerivePointerAlignment: false AlignConsecutiveAssignments: Consecutive AlignConsecutiveMacros: None AlignConsecutiveDeclarations: Consecutive AlignTrailingComments: true AlignEscapedNewlines: Left ReflowComments: false SortIncludes: Never IncludeBlocks: Preserve # loop macros keep their brace on the same line ForEachMacros: [FOR_STR8_ARB_FN, FOR_STR8_CHOP, FOR_STR8_CHOP_LEFT, FOR_STR8_CHOP_RIGHT, FOR_STR8_MATCH, FOR_STR8_NODE]