[all-commits] [llvm/llvm-project] 746005: [ObjC] Stop hard-coding the list of keywords that ...

Akira Hatanaka via All-commits all-commits at lists.llvm.org
Tue May 13 16:25:43 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7460056a81fbf897fecfaaae7aa8cc515599ea97
      https://github.com/llvm/llvm-project/commit/7460056a81fbf897fecfaaae7aa8cc515599ea97
  Author: Akira Hatanaka <ahatanak at gmail.com>
  Date:   2025-05-13 (Tue, 13 May 2025)

  Changed paths:
    M clang/lib/Parse/ParseObjc.cpp
    M clang/test/SemaObjCXX/cxxoperator-selector.mm

  Log Message:
  -----------
  [ObjC] Stop hard-coding the list of keywords that are allowed in selectors (#138952)

The design intent is that ObjC selector pieces can be arbitrary
keywords, including basic C keywords like `if`, and the grammar permits
this and makes it unambiguous.

Allow any token that has an identifier (except `__attribute__`) to be
part of a selector.

rdar://150383689



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