Searched refs:Ctor (Results 1 - 25 of 49) sorted by relevance

12

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

Completed in 2108 milliseconds

12