This is an archive of the discontinued LLVM Phabricator instance.

[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
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.

Diff Detail

Event Timeline

benhamilton created this revision.Apr 4 2023, 3:37 PM
Herald added projects: Restricted Project, Restricted Project, Restricted Project. · View Herald TranscriptApr 4 2023, 3:37 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
benhamilton requested review of this revision.Apr 4 2023, 3:37 PM
This revision is now accepted and ready to land.Apr 4 2023, 3:39 PM

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
This revision was automatically updated to reflect the committed changes.

The build machines aren’t using a latest enough version of clang-format for our local .clang-format file

The build machines aren’t using a latest enough version of clang-format for our local .clang-format file

Thanks, that's what I figured. I assigned https://github.com/llvm/llvm-project/issues/62007 to @goncharov for now.