clang-tools 22.0.0git
|
Finds usages of -[NSError init]. More...
#include <AvoidNSErrorInitCheck.h>
Public Member Functions | |
AvoidNSErrorInitCheck (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 usages of -[NSError init].
It is not the proper way of creating NSError. errorWithDomain:code:userInfo: should be used instead.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/objc/avoid-nserror-init.html
Definition at line 21 of file AvoidNSErrorInitCheck.h.
|
inline |
Definition at line 23 of file AvoidNSErrorInitCheck.h.
|
override |
Definition at line 23 of file AvoidNSErrorInitCheck.cpp.
|
inlineoverride |
Definition at line 25 of file AvoidNSErrorInitCheck.h.
|
override |
Definition at line 16 of file AvoidNSErrorInitCheck.cpp.