Home | History | Annotate | Download | only in Sema

Lines Matching refs:Constructor

471       OS << " (by copy constructor)";
1146 // constructor (i.e., a user-defined conversion function) is
1148 if (CXXConstructorDecl *Constructor
1154 if (Constructor->isCopyConstructor() &&
1162 ICS.Standard.CopyConstructor = Constructor;
1245 // constructor (i.e., a user-defined conversion function) is
1257 // copy/move constructor, since overloading just assumes that it
1259 // appropriate constructor to copy the returned object, if needed.
2929 CXXConstructorDecl *Constructor,
2932 Constructor->getType()->getAs<FunctionProtoType>();
2953 // Find the constructor (which may be a template).
2954 CXXConstructorDecl *Constructor = nullptr;
2958 Constructor
2961 Constructor = cast<CXXConstructorDecl>(D);
2963 bool Usable = !Constructor->isInvalidDecl() &&
2964 S.isInitListConstructor(Constructor) &&
2965 (AllowExplicit || !Constructor->isExplicit());
2970 isFirstArgumentCompatibleWithType(S.Context, Constructor, ToType);
2977 S.AddOverloadCandidate(Constructor, FoundDecl,
2989 CXXConstructorDecl *Constructor = cast<CXXConstructorDecl>(Best->Function);
2990 QualType ThisType = Constructor->getThisType(S.Context);
2994 User.ConversionFunction = Constructor;
3045 // constructor. [...] For copy-initialization, the candidate
3067 // But first, see if there is an init-list-constructor that will work.
3088 // Find the constructor (which may be a template).
3089 CXXConstructorDecl *Constructor = nullptr;
3093 Constructor
3096 Constructor = cast<CXXConstructorDecl>(D);
3098 bool Usable = !Constructor->isInvalidDecl();
3100 Usable = Usable && (AllowExplicit || !Constructor->isExplicit());
3102 Usable = Usable &&Constructor->isConvertingConstructor(AllowExplicit);
3111 S.Context, Constructor, ToType);
3122 S.AddOverloadCandidate(Constructor, FoundDecl,
3178 if (CXXConstructorDecl *Constructor
3182 // constructor (12.3.1), the initial standard conversion
3184 // the argument of the constructor.
3186 QualType ThisType = Constructor->getThisType(S.Context);
3199 User.ConversionFunction = Constructor;
3232 llvm_unreachable("Not a constructor or conversion function?");
3382 // constructor and if the second standard conversion sequence of
4404 // create a temporary through the use of a copy constructor.
4536 // resolution chooses a single best constructor [...] the implicit
5558 // We treat a constructor like a non-member function, since its object
5577 // A defaulted move constructor that is defined as deleted is ignored by
5579 CXXConstructorDecl *Constructor = dyn_cast<CXXConstructorDecl>(Function);
5580 if (Constructor && Constructor->isDefaulted() && Constructor->isDeleted() &&
5581 Constructor->isMoveConstructor())
5587 if (Constructor) {
5591 QualType ClassType = Context.getTypeDeclType(Constructor->getParent());
5593 Constructor->isSpecializationCopyingObject() &&
6145 // go through a copy constructor. 13.3.3.1.2-p4 [over.ics.user]
8432 "unexpected sort of implicit constructor");
8533 // non-constructor method. Note that 'I' corresponds the
8780 // TODO: treat calls to a missing default constructor as a special case
11415 // Microsoft supports direct constructor calls.