clang-tools 19.0.0git
Classes | Functions | Variables
clang::tidy::objc Namespace Reference


class  AssertEquals
 Warn 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...


static const std::map< std::string, std::string > & NameMap ()
bool isValidDatePattern (StringRef Pattern)
static ClangTidyModuleRegistry::Add< ObjCModuleX ("objc-module", "Adds Objective-C lint checks.")


static char ValidDatePatternChars []

Function Documentation

◆ isValidDatePattern()

bool clang::tidy::objc::isValidDatePattern ( StringRef  Pattern)

◆ NameMap()

static const std::map< std::string, std::string > & clang::tidy::objc::NameMap ( )

◆ X()

static ClangTidyModuleRegistry::Add< ObjCModule > clang::tidy::objc::X ( "objc-module"  ,
"Adds Objective-C lint checks."   

Variable Documentation

◆ ValidDatePatternChars

char clang::tidy::objc::ValidDatePatternChars[]
Initial value:
= {
'G', 'y', 'Y', 'u', 'U', 'r', 'Q', 'q', 'M', 'L', 'I', 'w', 'W', 'd',
'D', 'F', 'g', 'E', 'e', 'c', 'a', 'b', 'B', 'h', 'H', 'K', 'k', 'j',
'J', 'C', 'm', 's', 'S', 'A', 'z', 'Z', 'O', 'v', 'V', 'X', 'x'}

Definition at line 29 of file NSDateFormatterCheck.cpp.

Referenced by isValidDatePattern().