[all-commits] [llvm/llvm-project] 00ea67: [Format/ObjC] Support NS_ERROR_ENUM in ObjC langua...

Ben Hamilton (Ben Gertzfield) via All-commits all-commits at lists.llvm.org
Fri Apr 7 15:11:21 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 00ea6798959d358aff9d7ef0907bbe241be7f7a4
      https://github.com/llvm/llvm-project/commit/00ea6798959d358aff9d7ef0907bbe241be7f7a4
  Author: Ben Hamilton <benhamilton at google.com>
  Date:   2023-04-07 (Fri, 07 Apr 2023)

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

  Log Message:
  -----------
  [Format/ObjC] Support NS_ERROR_ENUM in ObjC language guesser

Apple added a new NS_ERROR_ENUM macro to help define enums for
NSError codes.

This updates libformat's Objective-C language-guessing heuristic
to detect the new macro as well as related NSError types.

Tested: New tests added.

Reviewed By: MyDeveloperDay

Differential Revision: https://reviews.llvm.org/D147577




More information about the All-commits mailing list