diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..5ef4a618 --- /dev/null +++ b/.clang-format @@ -0,0 +1,187 @@ +Language: Cpp + +AccessModifierOffset: -4 + +AlignAfterOpenBracket: DontAlign + +AlignConsecutiveAssignments: false + +AlignConsecutiveDeclarations: false + +AlignOperands: true + +AlignTrailingComments: true + +AllowAllParametersOfDeclarationOnNextLine: false +AllowShortBlocksOnASingleLine: false + +AllowShortCaseLabelsOnASingleLine: false + +AllowShortFunctionsOnASingleLine: None + +AllowShortIfStatementsOnASingleLine: false + +AllowShortLoopsOnASingleLine: false + +AlwaysBreakAfterDefinitionReturnType: None + +AlwaysBreakAfterReturnType: None + +AlwaysBreakBeforeMultilineStrings: false + +AlwaysBreakTemplateDeclarations: false + +BinPackArguments: true + +BinPackParameters: true + +BreakBeforeBinaryOperators: NonAssignment + +BreakBeforeBraces: Custom + +AlignEscapedNewlines: Left + +BreakBeforeInheritanceComma: false + +BreakBeforeTernaryOperators: true + +BreakConstructorInitializersBeforeComma: false +BreakConstructorInitializers: BeforeColon + +BreakInheritanceList: BeforeComma +BreakAfterJavaFieldAnnotations: false +BreakStringLiterals: true + +ColumnLimit: 119 + +CommentPragmas: '^ NOLINT' +CompactNamespaces: false + +ConstructorInitializerAllOnOneLineOrOnePerLine: false + +ConstructorInitializerIndentWidth: 4 + +ContinuationIndentWidth: 4 +Cpp11BracedListStyle: false + +DerivePointerAlignment: false + +PointerAlignment: Right + +ExperimentalAutoDetectBinPacking: false + +FixNamespaceComments: true + +ForEachMacros: + - foreach + - Q_FOREACH + - BOOST_FOREACH +IncludeBlocks: Regroup + +IncludeCategories: + - Regex: '^' + Priority: 2 + - Regex: '^<.*\.h>' + Priority: 1 + - Regex: '^<.*' + Priority: 2 + - Regex: '.*' + Priority: 3 +IncludeIsMainRegex: '([-_](test|benchmark))?$' + +IndentCaseLabels: true +IndentPPDirectives: None + +IndentWidth: 4 + +IndentWrappedFunctionNames: false + +JavaScriptQuotes: Leave +JavaScriptWrapImports: true + +KeepEmptyLinesAtTheStartOfBlocks: false + +MacroBlockBegin: '[A-Z_]+_BEGIN\(.*\)$' + +MacroBlockEnd: '.[A-Z_]+_END\(.*\)$' + +MaxEmptyLinesToKeep: 1 + +NamespaceIndentation: None + +ObjCBinPackProtocolList: Never + +ObjCBlockIndentWidth: 4 + +ObjCSpaceAfterProperty: false + +ObjCSpaceBeforeProtocolList: true + +PenaltyBreakBeforeFirstCallParameter: 1000 + +PenaltyBreakComment: 100 + +PenaltyBreakFirstLessLess: 5 + +PenaltyBreakString: 10 + +PenaltyBreakTemplateDeclaration: 10 + +PenaltyExcessCharacter: 20 + +PenaltyReturnTypeOnItsOwnLine: 50 + +PenaltyBreakAssignment: 10 + +ReflowComments: false + +SortIncludes: true + +SortUsingDeclarations: true + +SpaceAfterCStyleCast: false + +SpaceAfterTemplateKeyword: false + +SpaceBeforeAssignmentOperators: true +SpaceBeforeCpp11BracedList: false +SpaceBeforeCtorInitializerColon: true +SpaceBeforeInheritanceColon: true + +SpaceBeforeParens: ControlStatements +SpaceBeforeRangeBasedForLoopColon: true + +SpaceInEmptyParentheses: false + +SpacesBeforeTrailingComments: 1 + +SpacesInAngles: false + +SpacesInContainerLiterals: true + +SpacesInCStyleCastParentheses: false + +SpacesInParentheses: false + +SpacesInSquareBrackets: false + +Standard: Cpp11 + +TabWidth: 4 + +UseTab: Never + +BraceWrapping: + AfterClass: false + AfterControlStatement: false + AfterEnum: false + AfterFunction: true + AfterNamespace: false + AfterObjCDeclaration: false + AfterStruct: false + AfterUnion: false + AfterExternBlock: false + BeforeCatch: false + BeforeElse: false + +DisableFormat: false diff --git a/.gitee/PULL_REQUEST_TEMPLATE.zh-CN.md b/.gitee/PULL_REQUEST_TEMPLATE.zh-CN.md new file mode 100644 index 00000000..d355ae90 --- /dev/null +++ b/.gitee/PULL_REQUEST_TEMPLATE.zh-CN.md @@ -0,0 +1,9 @@ +* **IssueNo**: +* **Description**: +* **Sig**: SIG_DataManagement +* **Feature or Bugfix**: +* **Binary Source**:No/Yes +* **TDD**:Pass/Fail/NA +* **XTS**:Pass/Fail/NA +* **Pretest**:Pass/Fail/NA + \ No newline at end of file