[clang] 232d29e - [TableGen] Modernize GroupInfo (NFC)

Kazu Hirata via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 4 13:35:33 PDT 2023


Author: Kazu Hirata
Date: 2023-09-04T13:35:23-07:00
New Revision: 232d29ea0bd30ae94c76d48700fa2774b929e984

URL: https://github.com/llvm/llvm-project/commit/232d29ea0bd30ae94c76d48700fa2774b929e984
DIFF: https://github.com/llvm/llvm-project/commit/232d29ea0bd30ae94c76d48700fa2774b929e984.diff

LOG: [TableGen] Modernize GroupInfo (NFC)

Added: 
    

Modified: 
    clang/utils/TableGen/ClangDiagnosticsEmitter.cpp

Removed: 
    


################################################################################
diff  --git a/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp b/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
index d412db62576eb6..a8a80ed882bdef 100644
--- a/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
+++ b/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
@@ -132,11 +132,11 @@ namespace {
     llvm::StringRef GroupName;
     std::vector<const Record*> DiagsInGroup;
     std::vector<std::string> SubGroups;
-    unsigned IDNo;
+    unsigned IDNo = 0;
 
     llvm::SmallVector<const Record *, 1> Defs;
 
-    GroupInfo() : IDNo(0) {}
+    GroupInfo() = default;
   };
 } // end anonymous namespace.
 


        


More information about the cfe-commits mailing list