diff options
author | Yan Zhang <ynzhang@google.com> | 2018-11-01 17:36:18 +0000 |
---|---|---|
committer | Yan Zhang <ynzhang@google.com> | 2018-11-01 17:36:18 +0000 |
commit | cc1e9c414bd2109927ac37fb46c1c4b3967682e6 (patch) | |
tree | 1146b636ac9e3cbf6ae9c7581a52e9d77f8ac771 /clang-tools-extra/test | |
parent | 60cf3f82fd0c1358a2f58699480ebbcbd89f7e11 (diff) | |
download | bcm5719-llvm-cc1e9c414bd2109927ac37fb46c1c4b3967682e6.tar.gz bcm5719-llvm-cc1e9c414bd2109927ac37fb46c1c4b3967682e6.zip |
Fix the issue that not recognizing single acronym with prefix as ObjC property name.
Summary: This will make clang-tidy accept property names like xyz_URL (URL is a common acronym).
Reviewers: benhamilton, hokein
Reviewed By: benhamilton
Subscribers: jfb, cfe-commits
Differential Revision: https://reviews.llvm.org/D53955
llvm-svn: 345858
Diffstat (limited to 'clang-tools-extra/test')
-rw-r--r-- | clang-tools-extra/test/clang-tidy/objc-property-declaration.m | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang-tools-extra/test/clang-tidy/objc-property-declaration.m b/clang-tools-extra/test/clang-tidy/objc-property-declaration.m index 7f70784d354..26e2f9a5281 100644 --- a/clang-tools-extra/test/clang-tidy/objc-property-declaration.m +++ b/clang-tools-extra/test/clang-tidy/objc-property-declaration.m @@ -38,6 +38,7 @@ // CHECK-MESSAGES: :[[@LINE-1]]:34: warning: property name 'wrongFormat_' not using lowerCamelCase style or not prefixed in a category, according to the Apple Coding Guidelines [objc-property-declaration] @property(strong, nonatomic) NSString *URLStr; @property(assign, nonatomic) int abc_camelCase; +@property(strong, nonatomic) NSString *abc_URL; @end @interface Foo () |