--- Language: Cpp BasedOnStyle: WebKit Standard: Cpp11 TabWidth: 4 ColumnLimit: 100 AllowShortFunctionsOnASingleLine: Empty AllowShortIfStatementsOnASingleLine: false BreakConstructorInitializers: BeforeColon PackConstructorInitializers: Never # never sort includes, only regroup (in rare cases) IncludeBlocks: Regroup SortIncludes: Never # break before braces on function, namespace and class definitions. BreakBeforeBraces: Linux # CrlInstruction *a; PointerAlignment: Right # horizontally aligns arguments after an open bracket. AlignAfterOpenBracket: Align # don't move all parameters to new line AllowAllParametersOfDeclarationOnNextLine: false # always break before you encounter multi line strings AlwaysBreakBeforeMultilineStrings: true # don't move arguments to own lines if they are not all on the same BinPackArguments: false # don't move parameters to own lines if they are not all on the same BinPackParameters: false # In case we have an if statement with multiple lines the operator should be at the beginning of the line # but we do not want to break assignments BreakBeforeBinaryOperators: NonAssignment # format C++11 braced lists like function calls Cpp11BracedListStyle: true # do not put a space before C++11 braced lists SpaceBeforeCpp11BracedList: false # remove empty lines KeepEmptyLinesAtTheStartOfBlocks: false # no namespace indentation to keep indent level low NamespaceIndentation: None # we use template< without space. SpaceAfterTemplateKeyword: false # Always break after template declaration AlwaysBreakTemplateDeclarations: true # macros for which the opening brace stays attached. ForEachMacros: [ foreach, Q_FOREACH, forever, Q_FOREVER, QBENCHMARK, QBENCHMARK_ONCE ] # keep lambda formatting multi-line if not empty AllowShortLambdasOnASingleLine: Empty # We do not want clang-format to put all arguments on a new line AllowAllArgumentsOnNextLine: false # Have a space after casts SpaceAfterCStyleCast: true # All enums should be on their own line AllowShortEnumsOnASingleLine: false # don't reflow comments, this can cause issues with docstrings ReflowComments: false