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.
Paths
| Differential D147577
[Format/ObjC] Support NS_ERROR_ENUM in ObjC language guesser ClosedPublic Authored by benhamilton on Apr 4 2023, 3:37 PM.
Details Summary Apple added a new NS_ERROR_ENUM macro to help define enums for This updates libformat's Objective-C language-guessing heuristic Tested: New tests added.
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project, Restricted Project. · View Herald TranscriptApr 4 2023, 3:37 PM This revision is now accepted and ready to land.Apr 4 2023, 3:39 PM Comment Actions Filed https://github.com/llvm/llvm-project/issues/62007 on the buildkite failure (despite it being in git-clang-format, I'm about 98% sure it's unrelated). This revision was landed with ongoing or failed builds.Apr 7 2023, 3:11 PM Closed by commit rG00ea6798959d: [Format/ObjC] Support NS_ERROR_ENUM in ObjC language guesser (authored by benhamilton). · Explain Why This revision was automatically updated to reflect the committed changes. Comment Actions The build machines aren’t using a latest enough version of clang-format for our local .clang-format file Comment Actions
Thanks, that's what I figured. I assigned https://github.com/llvm/llvm-project/issues/62007 to @goncharov for now.
Revision Contents
Diff 510951 clang/lib/Format/Format.cpp
clang/lib/Format/FormatToken.h
clang/unittests/Format/FormatTestObjC.cpp
|