From: gichan Date: Mon, 4 Jul 2022 02:21:51 +0000 (+0900) Subject: [Style] Add clang format file X-Git-Tag: submit/tizen/20220706.100329~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=92e438dcbb0880b84b2b22f00e3c9651242763e7;p=platform%2Fupstream%2Fnnstreamer-edge.git [Style] Add clang format file Add clang format file - Copied from nnstreamer repo Signed-off-by: gichan --- diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..361d61a --- /dev/null +++ b/.clang-format @@ -0,0 +1,61 @@ +AccessModifierOffset: 0 +AlignAfterOpenBracket: DontAlign +AlignEscapedNewlinesLeft: true +AlignTrailingComments: false +AllowAllParametersOfDeclarationOnNextLine: false +AllowShortFunctionsOnASingleLine: false +AllowShortIfStatementsOnASingleLine: false +AllowShortLoopsOnASingleLine: false +AlwaysBreakAfterReturnType: TopLevelDefinitions +AlwaysBreakBeforeMultilineStrings: false +AlwaysBreakTemplateDeclarations: false +BinPackArguments: true +BinPackParameters: true +BreakBeforeBinaryOperators: true +BreakBeforeBraces: Linux +BreakBeforeTernaryOperators: false +BreakConstructorInitializersBeforeComma: false +BreakStringLiterals: false +ColumnLimit: 80 +CommentPragmas: '\* @' +ConstructorInitializerAllOnOneLineOrOnePerLine: false +ConstructorInitializerIndentWidth: 4 +ContinuationIndentWidth: 4 +Cpp11BracedListStyle: false +DerivePointerBinding: false +IncludeCategories: + - Regex: '.*gtest.*' + Priority: -10 + - Regex: '".*"' + Priority: 10 + - Regex: '<.*>' + Priority: 0 +IndentCaseLabels: true +IndentCaseBlocks: true +IndentFunctionDeclarationAfterType: true +IndentWidth: 2 +IndentWrappedFunctionNames: false +Language: Cpp +MaxEmptyLinesToKeep: 2 +NamespaceIndentation: None +ObjCSpaceAfterProperty: true +ObjCSpaceBeforeProtocolList: true +PenaltyBreakBeforeFirstCallParameter: 100 +PenaltyBreakComment: 100 +PenaltyBreakFirstLessLess: 0 +PenaltyBreakString: 100 +PenaltyExcessCharacter: 1 +PenaltyReturnTypeOnItsOwnLine: 20 +PointerBindsToType: false +SpaceAfterCStyleCast: true +SpaceBeforeAssignmentOperators: true +SpaceBeforeParens: Always +SpaceInEmptyParentheses: false +SpacesBeforeTrailingComments: 1 +SpacesInAngles: false +SpacesInCStyleCastParentheses: false +SpacesInContainerLiterals: false +SpacesInParentheses: false +Standard: Cpp11 +TabWidth: 4 +UseTab: Never