| # This style requires clang-format 4.0.0 or later |
| # |
| BasedOnStyle: GNU |
| --- |
| Language: Cpp |
| ColumnLimit: 100 |
| |
| AccessModifierOffset: -2 |
| AlignAfterOpenBracket: Align |
| AlignConsecutiveAssignments: false |
| AlignConsecutiveDeclarations: false |
| AlignEscapedNewlinesLeft: true |
| AlignOperands: true |
| AlignTrailingComments: true |
| AllowAllParametersOfDeclarationOnNextLine: false |
| AllowShortBlocksOnASingleLine: false |
| AllowShortCaseLabelsOnASingleLine: false |
| AllowShortFunctionsOnASingleLine: None |
| AllowShortIfStatementsOnASingleLine: false |
| AllowShortLoopsOnASingleLine: false |
| AlwaysBreakAfterDefinitionReturnType: All |
| AlwaysBreakAfterReturnType: All |
| AlwaysBreakBeforeMultilineStrings: false |
| AlwaysBreakTemplateDeclarations: true |
| BinPackArguments: true |
| BinPackParameters: true |
| BraceWrapping: |
| AfterClass: true |
| AfterControlStatement: false |
| AfterEnum: false |
| AfterFunction: true |
| AfterNamespace: false |
| AfterObjCDeclaration: false |
| AfterStruct: true |
| AfterUnion: true |
| BeforeCatch: true |
| BeforeElse: true |
| IndentBraces: false |
| # BreakBeforeBinaryOperators: NonAssignment |
| BreakBeforeBinaryOperators: None |
| BreakBeforeBraces: Custom |
| BreakBeforeTernaryOperators: true |
| BreakConstructorInitializersBeforeComma: true |
| BreakStringLiterals: false |
| CommentPragmas: '^ IWYU pragma:' |
| ConstructorInitializerAllOnOneLineOrOnePerLine: false |
| ConstructorInitializerIndentWidth: 2 |
| ContinuationIndentWidth: 2 |
| Cpp11BracedListStyle: true |
| DerivePointerAlignment: false |
| DisableFormat: false |
| ExperimentalAutoDetectBinPacking: true |
| ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] |
| IncludeCategories: |
| - Regex: '^"[^/]*"' |
| Priority: 1 |
| - Regex: '^"tests/' |
| Priority: 3 |
| - Regex: '^".*' |
| Priority: 2 |
| - Regex: '^<ndn-cxx/' |
| Priority: 8 |
| - Regex: '^<boost/' |
| Priority: 9 |
| - Regex: '^<.*' |
| Priority: 10 |
| # IncludeIsMainRegex: '(\.t)?$' ### clang >= 3.9 |
| IndentCaseLabels: true |
| IndentWidth: 2 |
| IndentWrappedFunctionNames: false |
| KeepEmptyLinesAtTheStartOfBlocks: false |
| MacroBlockBegin: '' |
| MacroBlockEnd: '' |
| MaxEmptyLinesToKeep: 2 |
| NamespaceIndentation: None |
| ObjCBlockIndentWidth: 2 |
| ObjCSpaceAfterProperty: true |
| ObjCSpaceBeforeProtocolList: false |
| PenaltyBreakBeforeFirstCallParameter: 2000 |
| PenaltyBreakComment: 500 |
| PenaltyBreakFirstLessLess: 200 |
| PenaltyBreakString: 100 |
| PenaltyExcessCharacter: 10 |
| PenaltyReturnTypeOnItsOwnLine: 0 |
| PointerAlignment: Left |
| ReflowComments: false |
| SortIncludes: true |
| SpaceAfterCStyleCast: false |
| SpaceBeforeAssignmentOperators: true |
| SpaceBeforeParens: ControlStatements |
| SpaceInEmptyParentheses: false |
| SpacesBeforeTrailingComments: 1 |
| SpacesInAngles: false |
| SpacesInContainerLiterals: false |
| SpacesInCStyleCastParentheses: false |
| SpacesInParentheses: false |
| SpacesInSquareBrackets: false |
| Standard: Cpp11 |
| TabWidth: 4 |
| UseTab: Never |
| --- |
| Language: JavaScript |
| |
| AccessModifierOffset: -2 |
| AlignAfterOpenBracket: Align |
| AlignConsecutiveAssignments: false |
| AlignConsecutiveDeclarations: false |
| AlignEscapedNewlinesLeft: true |
| AlignOperands: true |
| AlignTrailingComments: true |
| AllowAllParametersOfDeclarationOnNextLine: false |
| AllowShortBlocksOnASingleLine: false |
| AllowShortCaseLabelsOnASingleLine: false |
| AllowShortFunctionsOnASingleLine: None |
| AllowShortIfStatementsOnASingleLine: false |
| AllowShortLoopsOnASingleLine: false |
| AlwaysBreakAfterDefinitionReturnType: All |
| AlwaysBreakAfterReturnType: All |
| AlwaysBreakBeforeMultilineStrings: false |
| AlwaysBreakTemplateDeclarations: true |
| BinPackArguments: true |
| BinPackParameters: true |
| BraceWrapping: |
| AfterClass: true |
| AfterControlStatement: false |
| AfterEnum: false |
| AfterFunction: true |
| AfterNamespace: false |
| AfterObjCDeclaration: false |
| AfterStruct: true |
| AfterUnion: true |
| BeforeCatch: true |
| BeforeElse: true |
| IndentBraces: false |
| # BreakBeforeBinaryOperators: NonAssignment |
| BreakBeforeBinaryOperators: None |
| BreakBeforeBraces: Custom |
| BreakBeforeTernaryOperators: true |
| BreakConstructorInitializersBeforeComma: true |
| BreakStringLiterals: false |
| CommentPragmas: '^ IWYU pragma:' |
| ConstructorInitializerAllOnOneLineOrOnePerLine: false |
| ConstructorInitializerIndentWidth: 2 |
| ContinuationIndentWidth: 2 |
| Cpp11BracedListStyle: true |
| DerivePointerAlignment: false |
| DisableFormat: false |
| ExperimentalAutoDetectBinPacking: true |
| IndentCaseLabels: true |
| IndentWidth: 2 |
| IndentWrappedFunctionNames: false |
| KeepEmptyLinesAtTheStartOfBlocks: false |
| MacroBlockBegin: '' |
| MacroBlockEnd: '' |
| MaxEmptyLinesToKeep: 2 |
| NamespaceIndentation: None |
| ObjCBlockIndentWidth: 2 |
| ObjCSpaceAfterProperty: true |
| ObjCSpaceBeforeProtocolList: false |
| PenaltyBreakBeforeFirstCallParameter: 2000 |
| PenaltyBreakComment: 500 |
| PenaltyBreakFirstLessLess: 200 |
| PenaltyBreakString: 100 |
| PenaltyExcessCharacter: 10 |
| PenaltyReturnTypeOnItsOwnLine: 0 |
| PointerAlignment: Left |
| ReflowComments: false |
| SortIncludes: true |
| SpaceAfterCStyleCast: false |
| SpaceBeforeAssignmentOperators: true |
| SpaceBeforeParens: ControlStatements |
| SpaceInEmptyParentheses: false |
| SpacesBeforeTrailingComments: 1 |
| SpacesInAngles: false |
| SpacesInContainerLiterals: false |
| SpacesInParentheses: false |
| SpacesInSquareBrackets: false |
| TabWidth: 4 |
| UseTab: Never |