diff options
author | mikhnenko <mikhnenko@yandex-team.com> | 2024-04-04 16:39:17 +0300 |
---|---|---|
committer | mikhnenko <mikhnenko@yandex-team.com> | 2024-04-04 16:49:35 +0300 |
commit | d3b7159d4281e3d6d92f39a0e2ff7833e68a86d4 (patch) | |
tree | 1e2067a3d91cf63fc6aeca15857bc3e9898bef3c /build/config/tests | |
parent | f4eb30af3b98eaf6ee9a0900b4160adb653a3eaa (diff) | |
download | ydb-d3b7159d4281e3d6d92f39a0e2ff7833e68a86d4.tar.gz |
Use same configs in ya style and style-tests
853c2293128f6f534d97c1a5c97204e1f72868cf
Diffstat (limited to 'build/config/tests')
-rw-r--r-- | build/config/tests/cpp_style/config.clang-format | 4 | ||||
-rw-r--r-- | build/config/tests/cpp_style/config.clang-format-16 | 90 | ||||
-rw-r--r-- | build/config/tests/cpp_style/ya.make | 1 |
3 files changed, 3 insertions, 92 deletions
diff --git a/build/config/tests/cpp_style/config.clang-format b/build/config/tests/cpp_style/config.clang-format index c4bedb3f4e..3a354b63b4 100644 --- a/build/config/tests/cpp_style/config.clang-format +++ b/build/config/tests/cpp_style/config.clang-format @@ -3,7 +3,9 @@ AccessModifierOffset: -4 ConstructorInitializerIndentWidth: 4 AlignEscapedNewlinesLeft: false AlignEscapedNewlines: Left -AlignTrailingComments: true +AlignTrailingComments: + Kind: Always + OverEmptyLines: 0 AllowAllParametersOfDeclarationOnNextLine: true AllowShortBlocksOnASingleLine: false AllowShortIfStatementsOnASingleLine: false diff --git a/build/config/tests/cpp_style/config.clang-format-16 b/build/config/tests/cpp_style/config.clang-format-16 deleted file mode 100644 index 3a354b63b4..0000000000 --- a/build/config/tests/cpp_style/config.clang-format-16 +++ /dev/null @@ -1,90 +0,0 @@ -Language: Cpp -AccessModifierOffset: -4 -ConstructorInitializerIndentWidth: 4 -AlignEscapedNewlinesLeft: false -AlignEscapedNewlines: Left -AlignTrailingComments: - Kind: Always - OverEmptyLines: 0 -AllowAllParametersOfDeclarationOnNextLine: true -AllowShortBlocksOnASingleLine: false -AllowShortIfStatementsOnASingleLine: false -AllowShortLoopsOnASingleLine: false -AllowShortFunctionsOnASingleLine: None -AlwaysBreakTemplateDeclarations: true -AlwaysBreakBeforeMultilineStrings: false -BreakBeforeBinaryOperators: false -BreakBeforeTernaryOperators: true -BreakConstructorInitializersBeforeComma: true -BinPackParameters: true -ColumnLimit: 0 -ConstructorInitializerAllOnOneLineOrOnePerLine: false -DerivePointerAlignment: false -ExperimentalAutoDetectBinPacking: false -IndentCaseLabels: true -IndentWrappedFunctionNames: false -IndentFunctionDeclarationAfterType: false -MaxEmptyLinesToKeep: 1 -KeepEmptyLinesAtTheStartOfBlocks: false -NamespaceIndentation: All -ObjCSpaceAfterProperty: false -ObjCSpaceBeforeProtocolList: true -PenaltyBreakBeforeFirstCallParameter: 19 -PenaltyBreakComment: 300 -PenaltyBreakString: 1000 -PenaltyBreakFirstLessLess: 120 -PenaltyExcessCharacter: 1000000 -PenaltyReturnTypeOnItsOwnLine: 60 -PointerAlignment: Left -SpacesBeforeTrailingComments: 1 -Cpp11BracedListStyle: true -Standard: c++20 -IndentWidth: 4 -TabWidth: 4 -UseTab: Never -BreakBeforeBraces: Attach - -BraceWrapping: - AfterClass: false - AfterControlStatement: false - AfterEnum: false - AfterFunction: false - AfterNamespace: false - AfterObjCDeclaration: false - AfterStruct: false - AfterUnion: false - BeforeCatch: false - BeforeElse: false - IndentBraces: true - -SpacesInParentheses: false -SpacesInAngles: false -SpaceInEmptyParentheses: false -SpacesInCStyleCastParentheses: false -SpacesInContainerLiterals: true -SpaceBeforeAssignmentOperators: true -ContinuationIndentWidth: 4 -CommentPragmas: '^ IWYU pragma:' -ForEachMacros: [ - foreach, - Q_FOREACH, - BOOST_FOREACH, - # Is not a foreach, but correct formatting is achieved - Y_DEFER -] -IfMacros: [ - with_lock # Is not an if, but correct formatting is achieved -] -SpaceBeforeParens: ControlStatements -DisableFormat: false -SortIncludes: false -IndentPPDirectives: BeforeHash - -NamespaceMacros: [Y_UNIT_TEST_SUITE, Y_UNIT_TEST] -SpaceBeforeInheritanceColon: false -AttributeMacros: [Y_PRINTF_FORMAT, Y_NO_SANITIZE, Y_FORCE_INLINE, Y_NO_INLINE, Y_WARN_UNUSED_RESULT, Y_HIDDEN, Y_PUBLIC, Y_PURE_FUNCTION] -IndentExternBlock: Indent -TypenameMacros: [Y_THREAD, Y_STATIC_THREAD, Y_POD_THREAD, Y_POD_STATIC_THREAD] -SpacesInLineCommentPrefix: - Minimum: 0 - Maximum: -1 diff --git a/build/config/tests/cpp_style/ya.make b/build/config/tests/cpp_style/ya.make index 6d2fab5a83..bb5fccd5ea 100644 --- a/build/config/tests/cpp_style/ya.make +++ b/build/config/tests/cpp_style/ya.make @@ -2,7 +2,6 @@ LIBRARY() RESOURCE_FILES( config.clang-format - config.clang-format-16 ) END() |