Author: Kazu Hirata Date: 2023-08-27T09:24:26-07:00 New Revision: e7ee15eebe3758c488716407fe93e3ec0446478f
URL: https://github.com/llvm/llvm-project/commit/e7ee15eebe3758c488716407fe93e3ec0446478f DIFF: https://github.com/llvm/llvm-project/commit/e7ee15eebe3758c488716407fe93e3ec0446478f.diff LOG: [AST] Modernize MicrosoftNumberingContext (NFC) Added: Modified: clang/lib/AST/MicrosoftCXXABI.cpp Removed: ################################################################################ diff --git a/clang/lib/AST/MicrosoftCXXABI.cpp b/clang/lib/AST/MicrosoftCXXABI.cpp index 263e263eba7c60..1c020c3ad4ad55 100644 --- a/clang/lib/AST/MicrosoftCXXABI.cpp +++ b/clang/lib/AST/MicrosoftCXXABI.cpp @@ -30,14 +30,12 @@ namespace { /// Typically these are things like static locals, lambdas, or blocks. class MicrosoftNumberingContext : public MangleNumberingContext { llvm::DenseMap<const Type *, unsigned> ManglingNumbers; - unsigned LambdaManglingNumber; - unsigned StaticLocalNumber; - unsigned StaticThreadlocalNumber; + unsigned LambdaManglingNumber = 0; + unsigned StaticLocalNumber = 0; + unsigned StaticThreadlocalNumber = 0; public: - MicrosoftNumberingContext() - : LambdaManglingNumber(0), StaticLocalNumber(0), - StaticThreadlocalNumber(0) {} + MicrosoftNumberingContext() = default; unsigned getManglingNumber(const CXXMethodDecl *CallOperator) override { return ++LambdaManglingNumber; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits