[clang-format] Concepts: allow identifiers after negation
authorEmilia Dreamer <emilia@rymiel.space>
Mon, 5 Sep 2022 10:33:59 +0000 (12:33 +0200)
committerBjörn Schäpers <bjoern@hazardy.de>
Mon, 5 Sep 2022 10:35:40 +0000 (12:35 +0200)
commitbd3dd10a8b489ce50823b4cc0049f16610adeee2
treed05bf8107646b8ee018595ad6218ce775e55d1c9
parentc6e7752f8e144ad78aee2e56a7c901c56be360de
[clang-format] Concepts: allow identifiers after negation

Previously, the formatter would refuse to treat identifiers within a
compound concept definition as actually part of the definition, if
they were after the negation operator !. It is now made consistent
with the likes of && and ||.

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

Differential Revision: https://reviews.llvm.org/D131978
clang/lib/Format/UnwrappedLineParser.cpp
clang/unittests/Format/FormatTest.cpp
clang/unittests/Format/TokenAnnotatorTest.cpp