diff options
author | tldr <tldr@yandex-team.com> | 2023-09-18 19:26:07 +0300 |
---|---|---|
committer | tldr <tldr@yandex-team.com> | 2023-09-18 19:58:10 +0300 |
commit | 6cb5179992596006085e79a336f1cdca9fa2b994 (patch) | |
tree | b1244fba6b515b32ad7df8b67eec04af13a3836c /contrib/libs | |
parent | 341f535f7dfdb92deafb63493a041de534950c8d (diff) | |
download | ydb-6cb5179992596006085e79a336f1cdca9fa2b994.tar.gz |
[clang-format] with_lock formatting in config, remove from clang-fromat patch
Diffstat (limited to 'contrib/libs')
-rw-r--r-- | contrib/libs/clang14/lib/Format/TokenAnnotator.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/contrib/libs/clang14/lib/Format/TokenAnnotator.cpp b/contrib/libs/clang14/lib/Format/TokenAnnotator.cpp index e6f4de2673..0496b21256 100644 --- a/contrib/libs/clang14/lib/Format/TokenAnnotator.cpp +++ b/contrib/libs/clang14/lib/Format/TokenAnnotator.cpp @@ -2967,14 +2967,6 @@ bool TokenAnnotator::spaceRequiredBeforeParens(const FormatToken &Right) const { bool TokenAnnotator::spaceRequiredBetween(const AnnotatedLine &Line, const FormatToken &Left, const FormatToken &Right) { - if (Left.TokenText.str() == "with_lock") { - auto p = Left.Previous; - - if (!p || p->TokenText != "define") { - return true; - } - } - if (Left.is(tok::kw_return) && Right.isNot(tok::semi)) return true; if (Style.isJson() && Left.is(tok::string_literal) && Right.is(tok::colon)) |