[clang] [clang-format] Fix formatting of `requires` expressions in braced initializers (PR #163005)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 11 11:57:43 PDT 2025


================
@@ -26973,6 +26973,12 @@ TEST_F(FormatTest, RequiresExpressionIndentation) {
                Style);
 }
 
+TEST_F(FormatTest, RequiresExpressionInBracedInitializer) {
----------------
HazardyKnusperkeks wrote:

I think you can drop this test, but it wouldn't be a blocker for me if it stays. But you need to add a TokenAnnotatorTest, to show, that it is parsed and annotated as a requires expression.

Apart from that it looks good.

https://github.com/llvm/llvm-project/pull/163005


More information about the cfe-commits mailing list