Skip to content

Commit

Permalink
[clang] Modernize ModuleDeclSeq (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 564ddf9 commit 872536f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/include/clang/Lex/Preprocessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ class Preprocessor {
};

public:
ModuleDeclSeq() : State(NotAModuleDecl) {}
ModuleDeclSeq() = default;

void handleExport() {
if (State == NotAModuleDecl)
Expand Down Expand Up @@ -586,7 +586,7 @@ class Preprocessor {
}

private:
ModuleDeclState State;
ModuleDeclState State = NotAModuleDecl;
std::string Name;
};

Expand Down

0 comments on commit 872536f

Please sign in to comment.