|
clang-tools 22.0.0git
|
Classes | |
| class | AssertEqualsCheck |
| Warns if XCTAssertEqual() or XCTAssertNotEqual() is used with at least one operands of type NSString*. More... | |
| class | AvoidNSErrorInitCheck |
| Finds usages of -[NSError init]. More... | |
| class | DeallocInCategoryCheck |
| Finds implementations of -dealloc in Objective-C categories. More... | |
| class | ForbiddenSubclassingCheck |
| Finds Objective-C classes which have a superclass which is documented to not support subclassing. More... | |
| class | MissingHashCheck |
| Finds Objective-C implementations that implement -isEqual: without also appropriately implementing -hash. More... | |
| class | NSDateFormatterCheck |
| Checks the string pattern used as a date format specifier and reports warnings if it contains any incorrect sub-pattern. More... | |
| class | NSInvocationArgumentLifetimeCheck |
| Finds calls to NSInvocation methods under ARC that don't have proper argument object lifetimes. More... | |
| class | ObjCModule |
| class | PropertyDeclarationCheck |
| class | SuperSelfCheck |
| Finds invocations of -self on super instances in initializers of subclasses of NSObject and recommends calling a superclass initializer instead. More... | |
Functions | |
| static bool | isValidDatePattern (StringRef Pattern) |
| static std::optional< FixItHint > | fixItHintReplacementForOwnershipString (StringRef Text, CharSourceRange Range, StringRef Ownership) |
| static std::optional< FixItHint > | fixItHintForVarDecl (const VarDecl *VD, const SourceManager &SM, const LangOptions &LangOpts) |
| static ClangTidyModuleRegistry::Add< ObjCModule > | X ("objc-module", "Adds Objective-C lint checks.") |
| static FixItHint | generateFixItHint (const ObjCPropertyDecl *Decl, NamingStyle Style) |
| For now we will only fix 'CamelCase' or 'abc_CamelCase' property to 'camelCase' or 'abc_camelCase'. | |
| static std::string | validPropertyNameRegex (bool UsedInMatcher) |
| static bool | hasCategoryPropertyPrefix (llvm::StringRef PropertyName) |
| static bool | prefixedPropertyNameValid (llvm::StringRef PropertyName) |
Variables | |
| static const llvm::StringMap< StringRef > | NameMap |
| static char | ValidDatePatternChars [] |
| static constexpr StringRef | WeakText = "__weak" |
| static constexpr StringRef | StrongText = "__strong" |
| static constexpr StringRef | UnsafeUnretainedText = "__unsafe_unretained" |
|
static |
Definition at line 69 of file NSInvocationArgumentLifetimeCheck.cpp.
References fixItHintReplacementForOwnershipString(), StrongText, and WeakText.
Referenced by clang::tidy::objc::NSInvocationArgumentLifetimeCheck::check().
|
static |
Definition at line 56 of file NSInvocationArgumentLifetimeCheck.cpp.
References UnsafeUnretainedText.
Referenced by fixItHintForVarDecl().
|
static |
For now we will only fix 'CamelCase' or 'abc_CamelCase' property to 'camelCase' or 'abc_camelCase'.
For other cases the users need to come up with a proper name by their own. FIXME: provide fix for snake_case to snakeCase
Definition at line 36 of file PropertyDeclarationCheck.cpp.
Referenced by clang::tidy::objc::PropertyDeclarationCheck::check().
|
static |
Definition at line 81 of file PropertyDeclarationCheck.cpp.
Referenced by clang::tidy::objc::PropertyDeclarationCheck::check().
|
static |
Definition at line 37 of file NSDateFormatterCheck.cpp.
References ValidDatePatternChars.
Referenced by clang::tidy::objc::NSDateFormatterCheck::check().
|
static |
Definition at line 87 of file PropertyDeclarationCheck.cpp.
References validPropertyNameRegex().
Referenced by clang::tidy::objc::PropertyDeclarationCheck::check().
|
static |
Definition at line 59 of file PropertyDeclarationCheck.cpp.
Referenced by prefixedPropertyNameValid(), and clang::tidy::objc::PropertyDeclarationCheck::registerMatchers().
|
static |
|
static |
Definition at line 19 of file AssertEqualsCheck.cpp.
Referenced by clang::tidy::objc::AssertEqualsCheck::check(), and clang::tidy::objc::AssertEqualsCheck::registerMatchers().
|
staticconstexpr |
Definition at line 34 of file NSInvocationArgumentLifetimeCheck.cpp.
Referenced by fixItHintForVarDecl().
|
staticconstexpr |
Definition at line 35 of file NSInvocationArgumentLifetimeCheck.cpp.
Referenced by fixItHintReplacementForOwnershipString().
|
static |
Definition at line 28 of file NSDateFormatterCheck.cpp.
Referenced by isValidDatePattern().
|
staticconstexpr |
Definition at line 33 of file NSInvocationArgumentLifetimeCheck.cpp.
Referenced by fixItHintForVarDecl().