From: MyungJoo Ham Date: Wed, 22 Jan 2020 04:09:55 +0000 (+0900) Subject: Style/C++: .clang-format suggestion for C++ code. X-Git-Tag: v1.3.0~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=72399b090f6959fdfc56f753979488c7b2167fbd;p=platform%2Fupstream%2Fnnstreamer.git Style/C++: .clang-format suggestion for C++ code. This is supposed to be applied to .cc and .hh files. This prepares #2044 Signed-off-by: MyungJoo Ham --- diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..d6aa34d --- /dev/null +++ b/.clang-format @@ -0,0 +1,52 @@ +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 +IndentCaseLabels: false +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 +SpaceBeforeAssignmentOperators: true +SpaceBeforeParens: Always +SpaceInEmptyParentheses: false +SpacesBeforeTrailingComments: 1 +SpacesInAngles: false +SpacesInCStyleCastParentheses: false +SpacesInContainerLiterals: false +SpacesInParentheses: false +Standard: Cpp11 +TabWidth: 4 +UseTab: Never