@@ -15994,17 +15994,12 @@ static bool hasOneRealArgument(MultiExprArg Args) {
1599415994 return false;
1599515995}
1599615996
15997- ExprResult
15998- Sema::BuildCXXConstructExpr(SourceLocation ConstructLoc, QualType DeclInitType,
15999- NamedDecl *FoundDecl,
16000- CXXConstructorDecl *Constructor,
16001- MultiExprArg ExprArgs,
16002- bool HadMultipleCandidates,
16003- bool IsListInitialization,
16004- bool IsStdInitListInitialization,
16005- bool RequiresZeroInit,
16006- unsigned ConstructKind,
16007- SourceRange ParenRange) {
15997+ ExprResult Sema::BuildCXXConstructExpr(
15998+ SourceLocation ConstructLoc, QualType DeclInitType, NamedDecl *FoundDecl,
15999+ CXXConstructorDecl *Constructor, MultiExprArg ExprArgs,
16000+ bool HadMultipleCandidates, bool IsListInitialization,
16001+ bool IsStdInitListInitialization, bool RequiresZeroInit,
16002+ CXXConstructionKind ConstructKind, SourceRange ParenRange) {
1600816003 bool Elidable = false;
1600916004
1601016005 // C++0x [class.copy]p34:
@@ -16017,7 +16012,7 @@ Sema::BuildCXXConstructExpr(SourceLocation ConstructLoc, QualType DeclInitType,
1601716012 // with the same cv-unqualified type, the copy/move operation
1601816013 // can be omitted by constructing the temporary object
1601916014 // directly into the target of the omitted copy/move
16020- if (ConstructKind == CXXConstructExpr::CK_Complete && Constructor &&
16015+ if (ConstructKind == CXXConstructionKind::Complete && Constructor &&
1602116016 // FIXME: Converting constructors should also be accepted.
1602216017 // But to fix this, the logic that digs down into a CXXConstructExpr
1602316018 // to find the source object needs to handle it.
@@ -16041,18 +16036,12 @@ Sema::BuildCXXConstructExpr(SourceLocation ConstructLoc, QualType DeclInitType,
1604116036 ConstructKind, ParenRange);
1604216037}
1604316038
16044- ExprResult
16045- Sema::BuildCXXConstructExpr(SourceLocation ConstructLoc, QualType DeclInitType,
16046- NamedDecl *FoundDecl,
16047- CXXConstructorDecl *Constructor,
16048- bool Elidable,
16049- MultiExprArg ExprArgs,
16050- bool HadMultipleCandidates,
16051- bool IsListInitialization,
16052- bool IsStdInitListInitialization,
16053- bool RequiresZeroInit,
16054- unsigned ConstructKind,
16055- SourceRange ParenRange) {
16039+ ExprResult Sema::BuildCXXConstructExpr(
16040+ SourceLocation ConstructLoc, QualType DeclInitType, NamedDecl *FoundDecl,
16041+ CXXConstructorDecl *Constructor, bool Elidable, MultiExprArg ExprArgs,
16042+ bool HadMultipleCandidates, bool IsListInitialization,
16043+ bool IsStdInitListInitialization, bool RequiresZeroInit,
16044+ CXXConstructionKind ConstructKind, SourceRange ParenRange) {
1605616045 if (auto *Shadow = dyn_cast<ConstructorUsingShadowDecl>(FoundDecl)) {
1605716046 Constructor = findInheritingConstructor(ConstructLoc, Constructor, Shadow);
1605816047 // The only way to get here is if we did overlaod resolution to find the
@@ -16070,17 +16059,12 @@ Sema::BuildCXXConstructExpr(SourceLocation ConstructLoc, QualType DeclInitType,
1607016059
1607116060/// BuildCXXConstructExpr - Creates a complete call to a constructor,
1607216061/// including handling of its default argument expressions.
16073- ExprResult
16074- Sema::BuildCXXConstructExpr(SourceLocation ConstructLoc, QualType DeclInitType,
16075- CXXConstructorDecl *Constructor,
16076- bool Elidable,
16077- MultiExprArg ExprArgs,
16078- bool HadMultipleCandidates,
16079- bool IsListInitialization,
16080- bool IsStdInitListInitialization,
16081- bool RequiresZeroInit,
16082- unsigned ConstructKind,
16083- SourceRange ParenRange) {
16062+ ExprResult Sema::BuildCXXConstructExpr(
16063+ SourceLocation ConstructLoc, QualType DeclInitType,
16064+ CXXConstructorDecl *Constructor, bool Elidable, MultiExprArg ExprArgs,
16065+ bool HadMultipleCandidates, bool IsListInitialization,
16066+ bool IsStdInitListInitialization, bool RequiresZeroInit,
16067+ CXXConstructionKind ConstructKind, SourceRange ParenRange) {
1608416068 assert(declaresSameEntity(
1608516069 Constructor->getParent(),
1608616070 DeclInitType->getBaseElementTypeUnsafe()->getAsCXXRecordDecl()) &&
@@ -16094,8 +16078,7 @@ Sema::BuildCXXConstructExpr(SourceLocation ConstructLoc, QualType DeclInitType,
1609416078 Context, DeclInitType, ConstructLoc, Constructor, Elidable, ExprArgs,
1609516079 HadMultipleCandidates, IsListInitialization,
1609616080 IsStdInitListInitialization, RequiresZeroInit,
16097- static_cast<CXXConstructExpr::ConstructionKind>(ConstructKind),
16098- ParenRange),
16081+ static_cast<CXXConstructionKind>(ConstructKind), ParenRange),
1609916082 Constructor);
1610016083}
1610116084
0 commit comments