This change will support cases like:
@property(assign, nonatomic) int ID;
Paths
| Differential D46374
Add support for ObjC property name to be a single acronym. ClosedPublic Authored by Wizard on May 2 2018, 6:44 PM.
Details Summary This change will support cases like: @property(assign, nonatomic) int ID;
Diff Detail
Event Timelinebenhamilton added inline comments.
This revision now requires changes to proceed.May 3 2018, 8:14 AM
benhamilton added inline comments.
This revision is now accepted and ready to land.May 4 2018, 8:17 AM Closed by commit rL331545: Add support for ObjC property name to be a single acronym. (authored by Wizard). · Explain WhyMay 4 2018, 11:17 AM This revision was automatically updated to reflect the committed changes. Wizard marked an inline comment as done.
Revision Contents
Diff 144967 clang-tidy/objc/PropertyDeclarationCheck.cpp
test/clang-tidy/objc-property-declaration.m
|
s is a regular expression here, so you need to match it using llvm::Regex, not ==.
Why not just update validPropertyNameRegex() to handle this case?