123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- ---
- BasedOnStyle: GNU
- AccessModifierOffset: -2
- Language: Cpp
- # If true, aligns consecutive assignments
- # Example:
- # int aaaa = 12;
- # int b = 23;
- # int ccc = 23;
- AlignConsecutiveAssignments : false
- # If true, aligns consecutive declarations
- # Example:
- # int aaaa = 12;
- # float b = 23;
- # std::string ccc = 23;
- AlignConsecutiveDeclarations: false
- # If true, aligns trailing comments
- # Example:
- # true:
- # // Unrelated comment
- # void someFunction() {
- # doWork(); // Does something
- # doMoreWork(); // Does something else
- # }
- # false:
- # // Unrelated comment
- # void someFunction() {
- # doWork(); // Does something
- # doMoreWork(); // Does something else
- # }
- AlignTrailingComments : true
- # Allow putting all parameters of a function
- # declaration onto the next line even if
- # BinPackParameters is false
- # Example:
- # true:
- # someFunction(foo,
- # bar,
- # baz);
- # false:
- # someFunction(foo,bar,baz);
- BinPackParameters: false
- AllowAllParametersOfDeclarationOnNextLine : true
- # Allow contracting simple braced statements to
- # a single line
- # E.g., this allows if (a) { return; }
- # to be put on a single line.
- AllowShortBlocksOnASingleLine : true
- # If true, short case labels will be contracted
- # to a single line
- # E.g., this allows
- # switch (a) {
- # case 1: x = 1; return;
- # case 2: x = 2; return;
- # default: break
- # }
- AllowShortCaseLabelsOnASingleLine : false
- AllowShortBlocksOnASingleLine: true
- AllowShortIfStatementsOnASingleLine: false
- AllowShortLoopsOnASingleLine: false
- ConstructorInitializerIndentWidth: 4
- AlignEscapedNewlinesLeft: false
- AllowAllParametersOfDeclarationOnNextLine: true
- AlwaysBreakTemplateDeclarations: false
- AlwaysBreakBeforeMultilineStrings: false
- BreakBeforeBinaryOperators: false
- BreakBeforeTernaryOperators: true
- BreakConstructorInitializersBeforeComma: false
- # If false, a function call’s arguments will either
- # be all on the same line or will have one line each.
- BinPackArguments : false
- ColumnLimit: 60
- ConstructorInitializerAllOnOneLineOrOnePerLine: false
- DerivePointerBinding: false
- ExperimentalAutoDetectBinPacking: false
- IndentCaseLabels: false
- MaxEmptyLinesToKeep: 1
- NamespaceIndentation: None
- # ObjCSpaceBeforeProtocolList: true
- PenaltyBreakBeforeFirstCallParameter: 19
- PenaltyBreakComment: 60
- PenaltyBreakString: 1000
- PenaltyBreakFirstLessLess: 120
- PenaltyExcessCharacter: 1000000
- PenaltyReturnTypeOnItsOwnLine: 60
- # PointerBindsToType: false
- # SpacesBeforeTrailingComments: 1
- Cpp11BracedListStyle: false
- Standard: Auto
- IndentWidth: 4
- # # The number of columns used for tab stops.
- # TabWidth : 4
- # The way to use tab characters in the resulting file.
- # Available Options:
- # UT_Never : (in configuration: Never)
- # Never use tab.
- # UT_ForIndentation : (in configuration: ForIndentation)
- # Use tabs only for indentation.
- # UT_Always : (in configuration: Always)
- # Use tabs whenever we need to fill
- # whitespace that spans at least from
- # one tab stop to the next one.
- UseTab : Never
- ContinuationIndentWidth: 2
- # GNU uses too much space, the rest are inconsistent (they
- # attach depending on whether it is a function, class, namespace,etc.)
- BreakBeforeBraces : Attach
- ...
|