[clang] 872536f - [clang] Modernize ModuleDeclSeq (NFC)
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 16 14:48:30 PDT 2023
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;
};
More information about the cfe-commits
mailing list