Home
last modified time | relevance | path

Searched refs:Ctor (Results 1 – 25 of 51) sorted by relevance

123

/external/clang/test/Parser/
Dcxx-class.cpp73 class Ctor { // expected-note{{not complete until the closing '}'}} class
74 Ctor(f)(int); // ok
75 Ctor(g(int)); // ok
76 Ctor(x[5]); // expected-error{{incomplete type}}
78 Ctor(UnknownType *); // expected-error{{unknown type name 'UnknownType'}}
82 Ctor::Ctor (x) = { 0 }; // \
85 Ctor::Ctor(UnknownType *) {} // \ in Ctor() function in ctor_error::Ctor
87 void Ctor::operator+(UnknownType*) {} // \ in operator +()
/external/v8/test/mjsunit/
Dregress-sync-optimized-lists.js8 function Ctor() { class
27 f1(new Ctor(), false);
28 f1(new Ctor(), false);
33 var o = new Ctor();
45 f2(new Ctor(), true);
/external/clang/test/SemaCXX/
Ddeprecated.cpp61 struct Ctor { struct
62 Ctor();
63Ctor(const Ctor&); // expected-warning {{definition of implicit copy assignment operator for 'Ctor…
65 Ctor b1, b2;
Dcxx98-compat.cpp52 struct Ctor { struct
53 Ctor(int, char);
54 Ctor(double, long);
72Ctor c1 = { 1, 2 }; // expected-warning {{constructor call from initializer list is incompatible w…
73Ctor c2 = { 3.0, 4l }; // expected-warning {{constructor call from initializer list is incompatibl…
/external/v8/test/mjsunit/regress/
Dregress-343609.js8 function Ctor() { class
37 var o = new Ctor();
41 f1(new Ctor());
42 f1(new Ctor());
66 f2(new Ctor());
Dregress-crbug-305309.js38 function Ctor() {} class
39 Ctor.prototype = b1;
40 var a = new Ctor();
Dregress-crbug-350434.js7 function Ctor() { class
11 var o = new Ctor();
12 var p = new Ctor();
/external/clang/test/CXX/class/class.union/
Dp1.cpp16 class Ctor { class
17Ctor() { abort(); } // expected-note 2{{because type 'Ctor' has a user-provided default constructo… in Ctor() function in Ctor
41 Ctor ctor; // expected-error {{union member 'ctor' has a non-trivial constructor}}
58Ctor ctor; // expected-note {{because field of type 'Ctor' has a user-provided default constructor…
82 …struct s3 : Ctor { // expected-note {{because base class of type 'Ctor' has a user-provided defaul…
128 Either<int,Ctor> ctor(0); // expected-note {{in instantiation of template}} in fred()
/external/clang/unittests/ASTMatchers/Dynamic/
DRegistryTest.cpp46 llvm::Optional<MatcherCtor> Ctor = lookupMatcherCtor(MatcherName); in constructMatcher() local
48 if (Ctor) in constructMatcher()
49 Out = Registry::constructMatcher(*Ctor, SourceRange(), Args(), Error); in constructMatcher()
59 llvm::Optional<MatcherCtor> Ctor = lookupMatcherCtor(MatcherName); in constructMatcher() local
61 if (Ctor) in constructMatcher()
62 Out = Registry::constructMatcher(*Ctor, SourceRange(), Args(Arg1), Error); in constructMatcher()
73 llvm::Optional<MatcherCtor> Ctor = lookupMatcherCtor(MatcherName); in constructMatcher() local
75 if (Ctor) in constructMatcher()
76 Out = Registry::constructMatcher(*Ctor, SourceRange(), Args(Arg1, Arg2), in constructMatcher()
92 llvm::Optional<MatcherCtor> Ctor = lookupMatcherCtor(MatcherName1); in getCompletions() local
[all …]
/external/llvm/lib/CodeGen/
DMachinePassRegistry.cpp23 MachinePassCtor Ctor = nullptr; in setDefault() local
26 Ctor = R->getCtor(); in setDefault()
30 assert(Ctor && "Unregistered pass name"); in setDefault()
31 setDefault(Ctor); in setDefault()
DPasses.cpp659 RegisterRegAlloc::FunctionPassCtor Ctor = RegisterRegAlloc::getDefault(); in createRegAllocPass() local
662 if (!Ctor) { in createRegAllocPass()
663 Ctor = RegAlloc; in createRegAllocPass()
666 if (Ctor != useDefaultRegisterAllocator) in createRegAllocPass()
667 return Ctor(); in createRegAllocPass()
/external/clang/unittests/Tooling/
DRecursiveASTVisitorTestExprVisitor.cpp82 bool VisitCXXConstructorDecl(CXXConstructorDecl* Ctor) { in VisitCXXConstructorDecl() argument
83 if (Ctor->isImplicit()) { // Was not written in source code in VisitCXXConstructorDecl()
84 if (const CXXRecordDecl* Class = Ctor->getParent()) { in VisitCXXConstructorDecl()
85 Match(Class->getName(), Ctor->getLocation()); in VisitCXXConstructorDecl()
121 if (const CXXConstructorDecl* Ctor = Expr->getConstructor()) { in VisitCXXConstructExpr() local
122 if (const CXXRecordDecl* Class = Ctor->getParent()) { in VisitCXXConstructExpr()
/external/llvm/include/llvm/
DPassInfo.h102 void setNormalCtor(NormalCtor_t Ctor) { in setNormalCtor() argument
103 NormalCtor = Ctor; in setNormalCtor()
112 void setTargetMachineCtor(TargetMachineCtor_t Ctor) { in setTargetMachineCtor() argument
113 TargetMachineCtor = Ctor; in setTargetMachineCtor()
/external/clang/lib/StaticAnalyzer/Checkers/
DDynamicTypePropagation.cpp62 if (const CXXConstructorCall *Ctor = dyn_cast<CXXConstructorCall>(&Call)) { in checkPreCall() local
71 switch (Ctor->getOriginExpr()->getConstructionKind()) { in checkPreCall()
78 if (const MemRegion *Target = Ctor->getCXXThisVal().getAsRegion()) in checkPreCall()
79 recordFixedType(Target, Ctor->getDecl(), C); in checkPreCall()
152 if (const CXXConstructorCall *Ctor = dyn_cast<CXXConstructorCall>(&Call)) { in checkPostCall() local
154 switch (Ctor->getOriginExpr()->getConstructionKind()) { in checkPostCall()
165 if (const MemRegion *Target = Ctor->getCXXThisVal().getAsRegion()) { in checkPostCall()
DUndefinedArraySubscriptChecker.cpp45 if (const CXXConstructorDecl *Ctor = dyn_cast<CXXConstructorDecl>(D)) in checkPreStmt() local
46 if (Ctor->isDefaulted()) in checkPreStmt()
/external/llvm/include/llvm/CodeGen/
DMachinePassRegistry.h57 MachinePassCtor Ctor; // Function pass creator. variable
65 , Ctor(C) in MachinePassRegistryNode()
73 MachinePassCtor getCtor() const { return Ctor; } in getCtor()
/external/clang/lib/ASTMatchers/Dynamic/
DRegistry.cpp405 MatcherCtor Ctor = CtxEntry.first; in getAcceptedCompletionTypes() local
410 Ctor->isConvertibleTo(Kind.getMatcherKind()) && in getAcceptedCompletionTypes()
411 (Ctor->isVariadic() || ArgNumber < Ctor->getNumArgs())) in getAcceptedCompletionTypes()
412 Ctor->getArgKinds(Kind.getMatcherKind(), ArgNumber, NextTypeSet); in getAcceptedCompletionTypes()
499 VariantMatcher Registry::constructMatcher(MatcherCtor Ctor, in constructMatcher() argument
503 return Ctor->create(NameRange, Args, Error); in constructMatcher()
507 VariantMatcher Registry::constructBoundMatcher(MatcherCtor Ctor, in constructBoundMatcher() argument
512 VariantMatcher Out = constructMatcher(Ctor, NameRange, Args, Error); in constructBoundMatcher()
DParser.cpp335 llvm::Optional<MatcherCtor> Ctor = S->lookupMatcherCtor(NameToken.Text); in parseMatcherExpressionImpl() local
337 if (!Ctor) { in parseMatcherExpressionImpl()
347 ScopedContextEntry SCE(this, Ctor ? *Ctor : nullptr); in parseMatcherExpressionImpl()
421 if (!Ctor) in parseMatcherExpressionImpl()
430 *Ctor, MatcherRange, BindID, Args, Error); in parseMatcherExpressionImpl()
537 MatcherCtor Ctor, const SourceRange &NameRange, StringRef BindID, in actOnMatcherExpression() argument
540 return Registry::constructMatcher(Ctor, NameRange, Args, Error); in actOnMatcherExpression()
542 return Registry::constructBoundMatcher(Ctor, NameRange, BindID, Args, in actOnMatcherExpression()
/external/clang/include/clang/ASTMatchers/Dynamic/
DRegistry.h108 static VariantMatcher constructMatcher(MatcherCtor Ctor,
119 static VariantMatcher constructBoundMatcher(MatcherCtor Ctor,
DParser.h83 virtual VariantMatcher actOnMatcherExpression(MatcherCtor Ctor,
131 VariantMatcher actOnMatcherExpression(MatcherCtor Ctor,
/external/llvm/include/llvm/Support/
DRegistry.h27 std::unique_ptr<T> (*Ctor)(); variable
31 : Name(N), Desc(D), Ctor(C) in SimpleRegistryEntry()
36 std::unique_ptr<T> instantiate() const { return Ctor(); } in instantiate()
/external/clang/lib/CodeGen/
DCGClass.cpp663 static bool IsConstructorDelegationValid(const CXXConstructorDecl *Ctor) { in IsConstructorDelegationValid() argument
677 if (Ctor->getParent()->getNumVBases()) { in IsConstructorDelegationValid()
697 if (Ctor->getType()->getAs<FunctionProtoType>()->isVariadic()) in IsConstructorDelegationValid()
701 if (Ctor->isDelegatingConstructor()) in IsConstructorDelegationValid()
775 const CXXConstructorDecl *Ctor = cast<CXXConstructorDecl>(CurGD.getDecl()); in EmitConstructorBody() local
784 if (CtorType == Ctor_Complete && IsConstructorDelegationValid(Ctor) && in EmitConstructorBody()
786 EmitDelegateCXXConstructorCall(Ctor, Ctor_Base, Args, Ctor->getLocEnd()); in EmitConstructorBody()
791 Stmt *Body = Ctor->getBody(Definition); in EmitConstructorBody()
792 assert(Definition == Ctor && "emitting wrong constructor body"); in EmitConstructorBody()
810 EmitCtorPrologue(Ctor, CtorType, Args); in EmitConstructorBody()
[all …]
/external/llvm/tools/lli/
DOrcLazyJIT.h86 for (auto Ctor : orc::getConstructors(*M)) in addModule() local
87 CtorNames.push_back(mangle(Ctor.Func->getName())); in addModule()
/external/clang/lib/StaticAnalyzer/Core/
DExprEngineCXX.cpp43 if (const CXXConstructorCall *Ctor = dyn_cast<CXXConstructorCall>(&Call)) { in performTrivialCopy() local
44 assert(Ctor->getDecl()->isTrivial()); in performTrivialCopy()
45 assert(Ctor->getDecl()->isCopyOrMoveConstructor()); in performTrivialCopy()
46 ThisVal = Ctor->getCXXThisVal(); in performTrivialCopy()
/external/clang/test/CodeGenCXX/
Dconst-init-cxx11.cpp441 struct Ctor { constexpr Ctor(int n) : k(n) {} int k; }; in Ctor() argument
459 int ctor() { constexpr Ctor a = { f(102) }; return a.k; } in ctor()

123