Skip to content

Commit

Permalink
[StaticAnalyzer] Modernize InvalidationInfo (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata committed Aug 21, 2023
1 parent 848be08 commit 6f31908
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/lib/StaticAnalyzer/Checkers/IvarInvalidationChecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ class IvarInvalidationCheckerImpl {

struct InvalidationInfo {
/// Has the ivar been invalidated?
bool IsInvalidated;
bool IsInvalidated = false;

/// The methods which can be used to invalidate the ivar.
MethodSet InvalidationMethods;

InvalidationInfo() : IsInvalidated(false) {}
InvalidationInfo() = default;
void addInvalidationMethod(const ObjCMethodDecl *MD) {
InvalidationMethods.insert(MD);
}
Expand Down

0 comments on commit 6f31908

Please sign in to comment.