Skip to content

Commit

Permalink
[ASTMatchers] Modernize TimeBucketRegion (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata committed Aug 27, 2023
1 parent ad183b9 commit b32dfd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/lib/ASTMatchers/ASTMatchFinder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ class MatchASTVisitor : public RecursiveASTVisitor<MatchASTVisitor>,

class TimeBucketRegion {
public:
TimeBucketRegion() : Bucket(nullptr) {}
TimeBucketRegion() = default;
~TimeBucketRegion() { setBucket(nullptr); }

/// Start timing for \p NewBucket.
Expand All @@ -1002,7 +1002,7 @@ class MatchASTVisitor : public RecursiveASTVisitor<MatchASTVisitor>,
}

private:
llvm::TimeRecord *Bucket;
llvm::TimeRecord *Bucket = nullptr;
};

/// Runs all the \p Matchers on \p Node.
Expand Down

0 comments on commit b32dfd9

Please sign in to comment.