This is an archive of the discontinued LLVM Phabricator instance.

add extra acronyms for objc property names
ClosedPublic

Authored by Wizard on Apr 17 2018, 4:43 PM.

Details

Summary

This is to support general acronyms in Objective-C like 2G/3G/4G/... and coordinates X, Y, Z and W.

Diff Detail

Repository
rL LLVM

Event Timeline

Wizard created this revision.Apr 17 2018, 4:43 PM
Wizard edited the summary of this revision. (Show Details)Apr 17 2018, 4:44 PM
Wizard added a reviewer: benhamilton.
benhamilton accepted this revision.Apr 18 2018, 8:20 AM
benhamilton added inline comments.
clang-tidy/objc/PropertyDeclarationCheck.cpp
42 ↗(On Diff #142868)

Probably should just make this:

"\\d+G"
test/clang-tidy/objc-property-declaration.m
21 ↗(On Diff #142868)

enbale -> enable

This revision is now accepted and ready to land.Apr 18 2018, 8:20 AM
Wizard updated this revision to Diff 142985.Apr 18 2018, 1:05 PM
Wizard marked 2 inline comments as done.

resolve comments

clang-tidy/objc/PropertyDeclarationCheck.cpp
42 ↗(On Diff #142868)

It seems llvm::Regex does not recognize \d somehow. I tried \\d+ does not work for the test. Will keep [2-9]G for now.

This revision was automatically updated to reflect the committed changes.