468663ddbb
Former-commit-id: 1d6753294b2993e1fbf92de9366bb9544db4189b
13 lines
701 B
Objective-C
13 lines
701 B
Objective-C
// RUN: %check_clang_tidy %s objc-property-declaration %t
|
|
@class NSString;
|
|
|
|
@interface Foo
|
|
@property(assign, nonatomic) int NotCamelCase;
|
|
// CHECK-MESSAGES: :[[@LINE-1]]:34: warning: property name 'NotCamelCase' should use lowerCamelCase style, according to the Apple Coding Guidelines [objc-property-declaration]
|
|
// CHECK-FIXES: @property(assign, nonatomic) int notCamelCase;
|
|
@property(assign, nonatomic) int camelCase;
|
|
@property(strong, nonatomic) NSString *URLString;
|
|
@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
|