clang-tools 22.0.0git
|
Finds invocations of -self on super instances in initializers of subclasses of NSObject and recommends calling a superclass initializer instead. More...
#include <SuperSelfCheck.h>
Public Member Functions | |
SuperSelfCheck (StringRef Name, ClangTidyContext *Context) | |
bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
Finds invocations of -self on super instances in initializers of subclasses of NSObject and recommends calling a superclass initializer instead.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/objc/super-self.html
Definition at line 21 of file SuperSelfCheck.h.
|
inline |
Definition at line 23 of file SuperSelfCheck.h.
|
override |
Definition at line 85 of file SuperSelfCheck.cpp.
|
inlineoverride |
Definition at line 25 of file SuperSelfCheck.h.
|
override |
Definition at line 74 of file SuperSelfCheck.cpp.