Skip to content

Commit 230f337

Browse files
author
nae202
committed
ya style clang format. Braces style
Принудительно добавлять скобки для однострочников при использовании ya style. чтобы такого не было ```cpp for (const TString& sliceName : sliceNames) for (auto& test : allWebRankingSlices) if (sliceName == ToString(test.first)) return test.second; return algo2Domain; ``` Зависит от - REVIEW:7273779 - REVIEW:7273927 - REVIEW:7274020 - REVIEW:7274173 - REVIEW:7274863 - REVIEW:7274942 - REVIEW:7286577 - REVIEW:7286432 - REVIEW:7286620 - REVIEW:7308852 commit_hash:44ce41c86610dfd52cc9a1656ff1da6b4e411d6b
1 parent eb60ed0 commit 230f337

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build/config/tests/cpp_style/config.clang-format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ IndentWidth: 4
4747
TabWidth: 4
4848
UseTab: Never
4949
BreakBeforeBraces: Attach
50+
InsertBraces: true
5051

5152
# NB: BraceWrapping has no effect unless BreakBeforeBraces is set to Custom
5253
BraceWrapping:

0 commit comments

Comments
 (0)