9#include "../ClangTidy.h"
10#include "../ClangTidyModule.h"
11#include "../ClangTidyModuleRegistry.h"
31 "objc-avoid-nserror-init");
35 "objc-dealloc-in-category");
37 "objc-forbidden-subclassing");
42 "objc-nsinvocation-argument-lifetime");
44 "objc-property-declaration");
51static ClangTidyModuleRegistry::Add<ObjCModule>
X(
53 "Adds Objective-C lint checks.");
A collection of ClangTidyCheckFactory instances.
void registerCheck(llvm::StringRef CheckName)
Registers the CheckType with the name Name.
A clang-tidy module groups a number of ClangTidyChecks and gives them a prefixed name.
Warn if XCTAssertEqual() or XCTAssertNotEqual() is used with at least one operands of type NSString*.
Finds usages of -[NSError init].
Finds implementations of -dealloc in Objective-C categories.
Finds Objective-C classes which have a superclass which is documented to not support subclassing.
Finds Objective-C implementations that implement -isEqual: without also appropriately implementing -h...
Finds calls to NSInvocation methods under ARC that don't have proper argument object lifetimes.
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override
Implement this function in order to register all CheckFactories belonging to this module.
Finds invocations of -self on super instances in initializers of subclasses of NSObject and recommend...
volatile int ObjCModuleAnchorSource