Go to the documentation of this file.
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");
41 "objc-nsinvocation-argument-lifetime");
43 "objc-property-declaration");
50 static ClangTidyModuleRegistry::Add<ObjCModule>
X(
52 "Adds Objective-C lint checks.");
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override
Implement this function in order to register all CheckFactories belonging to this module.
A collection of ClangTidyCheckFactory instances.
Finds usages of -[NSError init].
Finds invocations of -self on super instances in initializers of subclasses of NSObject and recommend...
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...
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
volatile int ObjCModuleAnchorSource
Finds calls to NSInvocation methods under ARC that don't have proper argument object lifetimes.
Finds implementations of -dealloc in Objective-C categories.
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*.
void registerCheck(llvm::StringRef CheckName)
Registers the CheckType with the name Name.