[all-commits] [llvm/llvm-project] 0a4f19: [clang-format][Objective-C] Fix assertion crash on...

mygitljf via All-commits all-commits at lists.llvm.org
Wed Jun 3 13:51:34 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0a4f19e4769eae755cdad1a4af1d73988762dd2c
      https://github.com/llvm/llvm-project/commit/0a4f19e4769eae755cdad1a4af1d73988762dd2c
  Author: mygitljf <101249452+mygitljf at users.noreply.github.com>
  Date:   2026-06-03 (Wed, 03 Jun 2026)

  Changed paths:
    M clang/lib/Format/UnwrappedLineParser.cpp
    M clang/unittests/Format/FormatTestObjC.cpp

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

Before calling `parseObjCMethod()`, it now checks whether the next token
is a `(` or an identifier; if not, it simply skips ahead, thereby
preventing the assertion failure and subsequent crash.
Fixes #199075



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list