Go to the documentation of this file.
9 #include "../ClangTidy.h"
10 #include "../ClangTidyModule.h"
11 #include "../ClangTidyModuleRegistry.h"
30 "objc-avoid-nserror-init");
32 "objc-dealloc-in-category");
34 "objc-forbidden-subclassing");
38 "objc-nsinvocation-argument-lifetime");
40 "objc-property-declaration");
47 static ClangTidyModuleRegistry::Add<ObjCModule>
X(
49 "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++ -*-===//
static ClangTidyModuleRegistry::Add< ObjCModule > X("objc-module", "Adds Objective-C lint checks.")
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.
void registerCheck(llvm::StringRef CheckName)
Registers the CheckType with the name Name.