[clang] [clang-format][Objective-C] Fix assertion crash on stray '-'/'+' in @interfa… (PR #199104)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Fri May 22 12:07:02 PDT 2026


================
@@ -4262,7 +4262,11 @@ void UnwrappedLineParser::parseObjCUntilAtEnd() {
       addUnwrappedLine();
     } else if (FormatTok->isOneOf(tok::minus, tok::plus)) {
       nextToken();
-      parseObjCMethod();
+      // Guard against malformed input where '-'/'+' is not followed by a
----------------
HazardyKnusperkeks wrote:

Drop the comment.

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


More information about the cfe-commits mailing list