[clang] a6fa39d - [StaticAnalyzer] Modernize NSErrorMethodChecker (NFC)
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 5 00:23:01 PDT 2023
Author: Kazu Hirata
Date: 2023-09-05T00:22:53-07:00
New Revision: a6fa39da39c40c50a750de51cc6224195fd9f166
URL: https://github.com/llvm/llvm-project/commit/a6fa39da39c40c50a750de51cc6224195fd9f166
DIFF: https://github.com/llvm/llvm-project/commit/a6fa39da39c40c50a750de51cc6224195fd9f166.diff
LOG: [StaticAnalyzer] Modernize NSErrorMethodChecker (NFC)
Added:
Modified:
clang/lib/StaticAnalyzer/Checkers/NSErrorChecker.cpp
Removed:
################################################################################
diff --git a/clang/lib/StaticAnalyzer/Checkers/NSErrorChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/NSErrorChecker.cpp
index 59741dde1eeafb..54870bcb4bb22b 100644
--- a/clang/lib/StaticAnalyzer/Checkers/NSErrorChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/NSErrorChecker.cpp
@@ -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;
More information about the cfe-commits
mailing list