Skip to content

Commit

Permalink
[StaticAnalyzer] Modernize ObjCSuperCallChecker (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata committed Aug 27, 2023
1 parent e47189b commit 8f1b718
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class FindSuperCallVisitor : public RecursiveASTVisitor<FindSuperCallVisitor> {
class ObjCSuperCallChecker : public Checker<
check::ASTDecl<ObjCImplementationDecl> > {
public:
ObjCSuperCallChecker() : IsInitialized(false) {}
ObjCSuperCallChecker() = default;

void checkASTDecl(const ObjCImplementationDecl *D, AnalysisManager &Mgr,
BugReporter &BR) const;
Expand All @@ -75,7 +75,7 @@ class ObjCSuperCallChecker : public Checker<
void fillSelectors(ASTContext &Ctx, ArrayRef<SelectorDescriptor> Sel,
StringRef ClassName) const;
mutable llvm::StringMap<llvm::SmallPtrSet<Selector, 16>> SelectorsForClass;
mutable bool IsInitialized;
mutable bool IsInitialized = false;
};

}
Expand Down

0 comments on commit 8f1b718

Please sign in to comment.