diff options
Diffstat (limited to 'clang/lib/Format')
-rw-r--r-- | clang/lib/Format/TokenAnnotator.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Format/TokenAnnotator.cpp b/clang/lib/Format/TokenAnnotator.cpp index 501865e9ad8..15318deee8b 100644 --- a/clang/lib/Format/TokenAnnotator.cpp +++ b/clang/lib/Format/TokenAnnotator.cpp @@ -278,7 +278,9 @@ private: } else if (Style.Language == FormatStyle::LK_JavaScript && Parent && Parent->isOneOf(tok::l_brace, tok::comma)) { Left->Type = TT_JsComputedPropertyName; - } else if (Parent && Parent->isOneOf(tok::at, tok::equal, tok::comma)) { + } else if (Parent && + Parent->isOneOf(tok::at, tok::equal, tok::comma, + tok::l_paren)) { Left->Type = TT_ArrayInitializerLSquare; } else { BindingIncrease = 10; |