Skip to content

Commit

Permalink
[StaticAnalyzer] Modernize ObjCNonNilReturnValueChecker (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata committed Sep 4, 2023
1 parent 232d29e commit 77604d2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1145,13 +1145,13 @@ class ObjCNonNilReturnValueChecker
check::PostStmt<ObjCArrayLiteral>,
check::PostStmt<ObjCDictionaryLiteral>,
check::PostStmt<ObjCBoxedExpr> > {
mutable bool Initialized;
mutable bool Initialized = false;
mutable Selector ObjectAtIndex;
mutable Selector ObjectAtIndexedSubscript;
mutable Selector NullSelector;

public:
ObjCNonNilReturnValueChecker() : Initialized(false) {}
ObjCNonNilReturnValueChecker() = default;

ProgramStateRef assumeExprIsNonNull(const Expr *NonNullExpr,
ProgramStateRef State,
Expand Down

0 comments on commit 77604d2

Please sign in to comment.