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. _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits