[clang] 25c55d2 - [clang] Modernize ASTConsumer (NFC)
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 16 13:46:25 PDT 2023
Author: Kazu Hirata
Date: 2023-04-16T13:46:11-07:00
New Revision: 25c55d2c18b44e115069aba970ae684fbc2227f8
URL: https://github.com/llvm/llvm-project/commit/25c55d2c18b44e115069aba970ae684fbc2227f8
DIFF: https://github.com/llvm/llvm-project/commit/25c55d2c18b44e115069aba970ae684fbc2227f8.diff
LOG: [clang] Modernize ASTConsumer (NFC)
Identified with modernize-use-default-member-init.
Added:
Modified:
clang/include/clang/AST/ASTConsumer.h
Removed:
################################################################################
diff --git a/clang/include/clang/AST/ASTConsumer.h b/clang/include/clang/AST/ASTConsumer.h
index 21850e832ff1..ebcd8059284d 100644
--- a/clang/include/clang/AST/ASTConsumer.h
+++ b/clang/include/clang/AST/ASTConsumer.h
@@ -33,12 +33,12 @@ namespace clang {
class ASTConsumer {
/// Whether this AST consumer also requires information about
/// semantic analysis.
- bool SemaConsumer;
+ bool SemaConsumer = false;
friend class SemaConsumer;
public:
- ASTConsumer() : SemaConsumer(false) { }
+ ASTConsumer() = default;
virtual ~ASTConsumer() {}
More information about the cfe-commits
mailing list