diff options
author | nae202 <nae202@yandex-team.com> | 2024-11-22 19:32:28 +0300 |
---|---|---|
committer | nae202 <nae202@yandex-team.com> | 2024-11-22 19:42:25 +0300 |
commit | 230f337b0a3c8c24c85c587bcf55f3fe955b96c9 (patch) | |
tree | 0af4909542aa7271672f9a7daa29ff3a1d7c4b04 | |
parent | eb60ed0bccfea7b15375045ffd118e90af469491 (diff) | |
download | ydb-230f337b0a3c8c24c85c587bcf55f3fe955b96c9.tar.gz |
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
-rw-r--r-- | build/config/tests/cpp_style/config.clang-format | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/build/config/tests/cpp_style/config.clang-format b/build/config/tests/cpp_style/config.clang-format index 18077255ba8..de8822cde53 100644 --- a/build/config/tests/cpp_style/config.clang-format +++ b/build/config/tests/cpp_style/config.clang-format @@ -47,6 +47,7 @@ IndentWidth: 4 TabWidth: 4 UseTab: Never BreakBeforeBraces: Attach +InsertBraces: true # NB: BraceWrapping has no effect unless BreakBeforeBraces is set to Custom BraceWrapping: |