[clang] [clang-format][NFC] Update comment (PR #192301)

via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 15 11:04:11 PDT 2026


https://github.com/sstwcw created https://github.com/llvm/llvm-project/pull/192301

The code changed in adba2aadf2.

>From c2cf3067114a4b96d1b713595df9e43bb5091cb4 Mon Sep 17 00:00:00 2001
From: sstwcw <su3e8a96kzlver at posteo.net>
Date: Wed, 15 Apr 2026 18:01:46 +0000
Subject: [PATCH] [clang-format][NFC] Update comment

The code changed in adba2aadf2.
---
 clang/lib/Format/UnwrappedLineParser.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/clang/lib/Format/UnwrappedLineParser.cpp b/clang/lib/Format/UnwrappedLineParser.cpp
index c44cbebfbc598..6e9c6e030677c 100644
--- a/clang/lib/Format/UnwrappedLineParser.cpp
+++ b/clang/lib/Format/UnwrappedLineParser.cpp
@@ -566,8 +566,8 @@ void UnwrappedLineParser::calculateBraceTypes(bool ExpectClassBody) {
               (IsCpp && (PrevTok->Tok.isLiteral() ||
                          NextTok->isOneOf(tok::l_paren, tok::arrow)));
 
-          // If there is a comma, semicolon or right paren after the closing
-          // brace, we assume this is a braced initializer list.
+          // If there is a comma, or right paren after the closing brace, we
+          // assume this is a braced initializer list.
           // FIXME: Some of these do not apply to JS, e.g. "} {" can never be a
           // braced list in JS.
           ProbablyBracedList =



More information about the cfe-commits mailing list