[clang] [clang-format] Correctly annotate braces in ObjC square brackets (PR #106654)
kadir çetinkaya via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 30 01:35:02 PDT 2024
================
@@ -3286,6 +3286,14 @@ TEST_F(TokenAnnotatorTest, BlockLBrace) {
EXPECT_BRACE_KIND(Tokens[4], BK_Block);
EXPECT_TOKEN(Tokens[5], tok::l_brace, TT_BlockLBrace);
EXPECT_BRACE_KIND(Tokens[5], BK_Block);
+
+ Tokens = annotate("[foo bar:{{0, 1}}];", getLLVMStyle(FormatStyle::LK_ObjC));
----------------
kadircet wrote:
i believe this case was already WAI (somehow), can you add another selector after `}}`. e.g: `[foo bar:{{0, 1}} baz: baz];`
https://github.com/llvm/llvm-project/pull/106654
More information about the cfe-commits
mailing list