Skip to content

Commit

Permalink
[StaticAnalyzer] Modernize NSErrorMethodChecker (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata committed Sep 5, 2023
1 parent 23915fe commit a6fa39d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/lib/StaticAnalyzer/Checkers/NSErrorChecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ static bool IsCFError(QualType T, IdentifierInfo *II);
namespace {
class NSErrorMethodChecker
: public Checker< check::ASTDecl<ObjCMethodDecl> > {
mutable IdentifierInfo *II;
mutable IdentifierInfo *II = nullptr;

public:
NSErrorMethodChecker() : II(nullptr) {}
NSErrorMethodChecker() = default;

void checkASTDecl(const ObjCMethodDecl *D,
AnalysisManager &mgr, BugReporter &BR) const;
Expand Down

0 comments on commit a6fa39d

Please sign in to comment.