[clang] Modernize ASTConsumer (NFC)
authorKazu Hirata <kazu@google.com>
Sun, 16 Apr 2023 20:46:11 +0000 (13:46 -0700)
committerKazu Hirata <kazu@google.com>
Sun, 16 Apr 2023 20:46:11 +0000 (13:46 -0700)
Identified with modernize-use-default-member-init.

clang/include/clang/AST/ASTConsumer.h

index 21850e8..ebcd805 100644 (file)
@@ -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() {}