Alexander Afanasyev | eda3b7a | 2016-12-25 11:26:40 -0800 | [diff] [blame] | 1 | # This style requires clang-format 4.0.0 or later |
| 2 | # |
| 3 | BasedOnStyle: GNU |
| 4 | --- |
| 5 | Language: Cpp |
| 6 | ColumnLimit: 100 |
| 7 | |
| 8 | AccessModifierOffset: -2 |
| 9 | AlignAfterOpenBracket: Align |
| 10 | AlignConsecutiveAssignments: false |
| 11 | AlignConsecutiveDeclarations: false |
| 12 | AlignEscapedNewlinesLeft: true |
| 13 | AlignOperands: true |
| 14 | AlignTrailingComments: true |
| 15 | AllowAllParametersOfDeclarationOnNextLine: false |
| 16 | AllowShortBlocksOnASingleLine: false |
| 17 | AllowShortCaseLabelsOnASingleLine: false |
| 18 | AllowShortFunctionsOnASingleLine: None |
| 19 | AllowShortIfStatementsOnASingleLine: false |
| 20 | AllowShortLoopsOnASingleLine: false |
| 21 | AlwaysBreakAfterDefinitionReturnType: All |
| 22 | AlwaysBreakAfterReturnType: All |
| 23 | AlwaysBreakBeforeMultilineStrings: false |
| 24 | AlwaysBreakTemplateDeclarations: true |
| 25 | BinPackArguments: true |
| 26 | BinPackParameters: true |
| 27 | BraceWrapping: |
| 28 | AfterClass: true |
| 29 | AfterControlStatement: false |
| 30 | AfterEnum: false |
| 31 | AfterFunction: true |
| 32 | AfterNamespace: false |
| 33 | AfterObjCDeclaration: false |
| 34 | AfterStruct: true |
| 35 | AfterUnion: true |
| 36 | BeforeCatch: true |
| 37 | BeforeElse: true |
| 38 | IndentBraces: false |
| 39 | # BreakBeforeBinaryOperators: NonAssignment |
| 40 | BreakBeforeBinaryOperators: None |
| 41 | BreakBeforeBraces: Custom |
| 42 | BreakBeforeTernaryOperators: true |
| 43 | BreakConstructorInitializersBeforeComma: true |
| 44 | BreakStringLiterals: false |
| 45 | CommentPragmas: '^ IWYU pragma:' |
| 46 | ConstructorInitializerAllOnOneLineOrOnePerLine: false |
| 47 | ConstructorInitializerIndentWidth: 2 |
| 48 | ContinuationIndentWidth: 2 |
| 49 | Cpp11BracedListStyle: true |
| 50 | DerivePointerAlignment: false |
| 51 | DisableFormat: false |
| 52 | ExperimentalAutoDetectBinPacking: true |
| 53 | ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] |
| 54 | IncludeCategories: |
| 55 | - Regex: '^"[^/]*"' |
| 56 | Priority: 1 |
| 57 | - Regex: '^"tests/' |
| 58 | Priority: 3 |
| 59 | - Regex: '^".*' |
| 60 | Priority: 2 |
| 61 | - Regex: '^<ndn-cxx/' |
| 62 | Priority: 8 |
| 63 | - Regex: '^<boost/' |
| 64 | Priority: 9 |
| 65 | - Regex: '^<.*' |
| 66 | Priority: 10 |
| 67 | # IncludeIsMainRegex: '(\.t)?$' ### clang >= 3.9 |
| 68 | IndentCaseLabels: true |
| 69 | IndentWidth: 2 |
| 70 | IndentWrappedFunctionNames: false |
| 71 | KeepEmptyLinesAtTheStartOfBlocks: false |
| 72 | MacroBlockBegin: '' |
| 73 | MacroBlockEnd: '' |
| 74 | MaxEmptyLinesToKeep: 2 |
| 75 | NamespaceIndentation: None |
| 76 | ObjCBlockIndentWidth: 2 |
| 77 | ObjCSpaceAfterProperty: true |
| 78 | ObjCSpaceBeforeProtocolList: false |
| 79 | PenaltyBreakBeforeFirstCallParameter: 2000 |
| 80 | PenaltyBreakComment: 500 |
| 81 | PenaltyBreakFirstLessLess: 200 |
| 82 | PenaltyBreakString: 100 |
| 83 | PenaltyExcessCharacter: 10 |
| 84 | PenaltyReturnTypeOnItsOwnLine: 0 |
| 85 | PointerAlignment: Left |
| 86 | ReflowComments: false |
| 87 | SortIncludes: true |
| 88 | SpaceAfterCStyleCast: false |
| 89 | SpaceBeforeAssignmentOperators: true |
| 90 | SpaceBeforeParens: ControlStatements |
| 91 | SpaceInEmptyParentheses: false |
| 92 | SpacesBeforeTrailingComments: 1 |
| 93 | SpacesInAngles: false |
| 94 | SpacesInContainerLiterals: false |
| 95 | SpacesInCStyleCastParentheses: false |
| 96 | SpacesInParentheses: false |
| 97 | SpacesInSquareBrackets: false |
| 98 | Standard: Cpp11 |
| 99 | TabWidth: 4 |
| 100 | UseTab: Never |
| 101 | --- |
| 102 | Language: JavaScript |
| 103 | |
| 104 | AccessModifierOffset: -2 |
| 105 | AlignAfterOpenBracket: Align |
| 106 | AlignConsecutiveAssignments: false |
| 107 | AlignConsecutiveDeclarations: false |
| 108 | AlignEscapedNewlinesLeft: true |
| 109 | AlignOperands: true |
| 110 | AlignTrailingComments: true |
| 111 | AllowAllParametersOfDeclarationOnNextLine: false |
| 112 | AllowShortBlocksOnASingleLine: false |
| 113 | AllowShortCaseLabelsOnASingleLine: false |
| 114 | AllowShortFunctionsOnASingleLine: None |
| 115 | AllowShortIfStatementsOnASingleLine: false |
| 116 | AllowShortLoopsOnASingleLine: false |
| 117 | AlwaysBreakAfterDefinitionReturnType: All |
| 118 | AlwaysBreakAfterReturnType: All |
| 119 | AlwaysBreakBeforeMultilineStrings: false |
| 120 | AlwaysBreakTemplateDeclarations: true |
| 121 | BinPackArguments: true |
| 122 | BinPackParameters: true |
| 123 | BraceWrapping: |
| 124 | AfterClass: true |
| 125 | AfterControlStatement: false |
| 126 | AfterEnum: false |
| 127 | AfterFunction: true |
| 128 | AfterNamespace: false |
| 129 | AfterObjCDeclaration: false |
| 130 | AfterStruct: true |
| 131 | AfterUnion: true |
| 132 | BeforeCatch: true |
| 133 | BeforeElse: true |
| 134 | IndentBraces: false |
| 135 | # BreakBeforeBinaryOperators: NonAssignment |
| 136 | BreakBeforeBinaryOperators: None |
| 137 | BreakBeforeBraces: Custom |
| 138 | BreakBeforeTernaryOperators: true |
| 139 | BreakConstructorInitializersBeforeComma: true |
| 140 | BreakStringLiterals: false |
| 141 | CommentPragmas: '^ IWYU pragma:' |
| 142 | ConstructorInitializerAllOnOneLineOrOnePerLine: false |
| 143 | ConstructorInitializerIndentWidth: 2 |
| 144 | ContinuationIndentWidth: 2 |
| 145 | Cpp11BracedListStyle: true |
| 146 | DerivePointerAlignment: false |
| 147 | DisableFormat: false |
| 148 | ExperimentalAutoDetectBinPacking: true |
| 149 | IndentCaseLabels: true |
| 150 | IndentWidth: 2 |
| 151 | IndentWrappedFunctionNames: false |
| 152 | KeepEmptyLinesAtTheStartOfBlocks: false |
| 153 | MacroBlockBegin: '' |
| 154 | MacroBlockEnd: '' |
| 155 | MaxEmptyLinesToKeep: 2 |
| 156 | NamespaceIndentation: None |
| 157 | ObjCBlockIndentWidth: 2 |
| 158 | ObjCSpaceAfterProperty: true |
| 159 | ObjCSpaceBeforeProtocolList: false |
| 160 | PenaltyBreakBeforeFirstCallParameter: 2000 |
| 161 | PenaltyBreakComment: 500 |
| 162 | PenaltyBreakFirstLessLess: 200 |
| 163 | PenaltyBreakString: 100 |
| 164 | PenaltyExcessCharacter: 10 |
| 165 | PenaltyReturnTypeOnItsOwnLine: 0 |
| 166 | PointerAlignment: Left |
| 167 | ReflowComments: false |
| 168 | SortIncludes: true |
| 169 | SpaceAfterCStyleCast: false |
| 170 | SpaceBeforeAssignmentOperators: true |
| 171 | SpaceBeforeParens: ControlStatements |
| 172 | SpaceInEmptyParentheses: false |
| 173 | SpacesBeforeTrailingComments: 1 |
| 174 | SpacesInAngles: false |
| 175 | SpacesInContainerLiterals: false |
| 176 | SpacesInParentheses: false |
| 177 | SpacesInSquareBrackets: false |
| 178 | TabWidth: 4 |
| 179 | UseTab: Never |