[clang] [clang-format] Fix a crash on triple-bracket input like `[[[a]]` (PR #199103)

via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 9 23:17:03 PDT 2026


================
@@ -87,8 +87,7 @@ static bool isKeywordWithCondition(const FormatToken &Tok) {
 static bool isCppAttribute(bool IsCpp, const FormatToken &Tok) {
   if (!IsCpp || !Tok.startsSequence(tok::l_square, tok::l_square))
     return false;
-  // The first square bracket is part of an ObjC array literal
----------------
mydeveloperday wrote:

why was there not value in keeping the comment in some form.. 

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


More information about the cfe-commits mailing list