Author: Kazu Hirata Date: 2023-04-16T14:48:18-07:00 New Revision: 872536f09d8c96e5734e2bcabfa384d7dc9b56ab
URL: https://github.com/llvm/llvm-project/commit/872536f09d8c96e5734e2bcabfa384d7dc9b56ab DIFF: https://github.com/llvm/llvm-project/commit/872536f09d8c96e5734e2bcabfa384d7dc9b56ab.diff LOG: [clang] Modernize ModuleDeclSeq (NFC) Identified with modernize-use-default-member-init. Added: Modified: clang/include/clang/Lex/Preprocessor.h Removed: ################################################################################ diff --git a/clang/include/clang/Lex/Preprocessor.h b/clang/include/clang/Lex/Preprocessor.h index a7ba486e0e50f..a34a451f4bad1 100644 --- a/clang/include/clang/Lex/Preprocessor.h +++ b/clang/include/clang/Lex/Preprocessor.h @@ -499,7 +499,7 @@ class Preprocessor { }; public: - ModuleDeclSeq() : State(NotAModuleDecl) {} + ModuleDeclSeq() = default; void handleExport() { if (State == NotAModuleDecl) @@ -586,7 +586,7 @@ class Preprocessor { } private: - ModuleDeclState State; + ModuleDeclState State = NotAModuleDecl; std::string Name; }; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits