[clang-format] Defer formatting of operator< to honor paren spacing
authorEmilia Dreamer <emilia@rymiel.space>
Thu, 17 Nov 2022 09:36:05 +0000 (11:36 +0200)
committerEmilia Dreamer <emilia@rymiel.space>
Thu, 17 Nov 2022 09:38:21 +0000 (11:38 +0200)
commitdf6f4b85138f86be73d58ff3f511df5306cc4b4d
tree51bf0d96e5757351d9a9a9804bef2d957840f5a3
parent9729b6930b414f1d882e376a0a18a23d8a8b85cd
[clang-format] Defer formatting of operator< to honor paren spacing

I'm not exactly sure what the intent of that section of
`spaceRequiredBetween` is doing, it seems to handle templates and <<,
but the part which adds spaces before parens is way later, as part
of `spaceRequiredBeforeParens`.

Fixes https://github.com/llvm/llvm-project/issues/58821

Reviewed By: HazardyKnusperkeks, owenpan, MyDeveloperDay

Differential Revision: https://reviews.llvm.org/D137474
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp