Skip to content

Commit

Permalink
[clang] Modernize OptRemark (NFC)
Browse files Browse the repository at this point in the history
Identified with modernize-use-default-member-init.
  • Loading branch information
kazutakahirata committed Apr 16, 2023
1 parent 3993de1 commit 79e106f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/include/clang/Basic/CodeGenOptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -332,12 +332,12 @@ class CodeGenOptions : public CodeGenOptionsBase {

/// Optimization remark with an optional regular expression pattern.
struct OptRemark {
RemarkKind Kind;
RemarkKind Kind = RK_Missing;
std::string Pattern;
std::shared_ptr<llvm::Regex> Regex;

/// By default, optimization remark is missing.
OptRemark() : Kind(RK_Missing), Regex(nullptr) {}
OptRemark() = default;

/// Returns true iff the optimization remark holds a valid regular
/// expression.
Expand Down

0 comments on commit 79e106f

Please sign in to comment.