diff options
| author | Ben Hamilton <benhamilton@google.com> | 2018-01-18 20:51:24 +0000 |
|---|---|---|
| committer | Ben Hamilton <benhamilton@google.com> | 2018-01-18 20:51:24 +0000 |
| commit | 55c3a321a8541016bd8a4305dbed6bbed49c0d95 (patch) | |
| tree | f67773361649a40f15e15a775a57ea7be6d0a30b /clang-tools-extra/test/clang-tidy/objc-property-declaration.m | |
| parent | 719c1f7405d6c67e69e6a2793334d4fd36402897 (diff) | |
| download | bcm5719-llvm-55c3a321a8541016bd8a4305dbed6bbed49c0d95.tar.gz bcm5719-llvm-55c3a321a8541016bd8a4305dbed6bbed49c0d95.zip | |
[clang-tidy objc-property-declaration] Expand list of ObjC acronyms
Summary:
We were missing some pretty common acronyms in the camelCase
property name check objc-property-declaration.
This expands the list and sorts it lexicographically, so we can
avoid duplicates.
Test Plan: make -j12 check-clang-tools
Reviewers: Wizard, hokein, klimek
Reviewed By: Wizard
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D42253
llvm-svn: 322886
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/objc-property-declaration.m')
| -rw-r--r-- | clang-tools-extra/test/clang-tidy/objc-property-declaration.m | 4 |
1 files changed, 4 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 c06a8ff37f6..09af33eee21 100644 --- a/clang-tools-extra/test/clang-tidy/objc-property-declaration.m +++ b/clang-tools-extra/test/clang-tidy/objc-property-declaration.m @@ -1,5 +1,7 @@ // RUN: %check_clang_tidy %s objc-property-declaration %t +@class NSData; @class NSString; +@class UIViewController; @interface Foo @property(assign, nonatomic) int NotCamelCase; @@ -8,6 +10,8 @@ @property(assign, nonatomic) int camelCase; @property(strong, nonatomic) NSString *URLString; @property(strong, nonatomic) NSString *bundleID; +@property(strong, nonatomic) NSData *RGBABytes; +@property(strong, nonatomic) UIViewController *notificationsVC; @property(strong, nonatomic) NSString *URL_string; // CHECK-MESSAGES: :[[@LINE-1]]:40: warning: property name 'URL_string' should use lowerCamelCase style, according to the Apple Coding Guidelines [objc-property-declaration] @end |

