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

12

/external/chromium_org/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/chromium_org/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.cpp55 struct Ctor { struct in namespace:DeprecatedCopy
56 Ctor();
57 Ctor(const Ctor&); // expected-warning {{definition of implicit copy assignment operator for 'Ctor' is deprecated because it has a user-declared copy constructor}}
59 Ctor b1, b2;
60 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/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/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.cpp664 RegisterRegAlloc::FunctionPassCtor Ctor = RegisterRegAlloc::getDefault(); local
667 if (!Ctor) {
668 Ctor = RegAlloc;
671 if (Ctor != useDefaultRegisterAllocator)
672 return Ctor();
/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/include/clang/ASTMatchers/Dynamic/
H A DRegistry.h86 /// \param Ctor The matcher constructor to instantiate.
99 static VariantMatcher constructMatcher(MatcherCtor Ctor,
110 static VariantMatcher constructBoundMatcher(MatcherCtor Ctor,
H A DParser.h81 /// \param Ctor A matcher constructor looked up by lookupMatcherCtor.
94 virtual VariantMatcher actOnMatcherExpression(MatcherCtor Ctor,
119 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),
91 llvm::Optional<MatcherCtor> Ctor local
101 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.cpp326 llvm::Optional<MatcherCtor> Ctor = S->lookupMatcherCtor(NameToken.Text); local
328 if (!Ctor) {
338 ScopedContextEntry SCE(this, Ctor ? *Ctor : nullptr);
412 if (!Ctor)
421 *Ctor, MatcherRange, BindID, Args, Error);
509 MatcherCtor Ctor, const SourceRange &NameRange, StringRef BindID,
512 return Registry::constructMatcher(Ctor, NameRange, Args, Error);
514 return Registry::constructBoundMatcher(Ctor, NameRange, BindID, Args,
508 actOnMatcherExpression( MatcherCtor Ctor, const SourceRange &NameRange, StringRef BindID, ArrayRef<ParserValue> Args, Diagnostics *Error) argument
H A DRegistry.cpp485 VariantMatcher Registry::constructMatcher(MatcherCtor Ctor, argument
489 return Ctor->create(NameRange, Args, Error);
493 VariantMatcher Registry::constructBoundMatcher(MatcherCtor Ctor, argument
498 VariantMatcher Out = constructMatcher(Ctor, NameRange, Args, Error);
/external/llvm/include/llvm/Support/
H A DRegistry.h28 std::unique_ptr<T> (*Ctor)(); member in class:llvm::SimpleRegistryEntry::std
32 : Name(N), Desc(D), Ctor(C)
37 std::unique_ptr<T> instantiate() const { return Ctor(); }
192 /// entry(const char *Name, const char *ShortDesc, T *(*Ctor)());
/external/clang/unittests/Tooling/
H A DRecursiveASTVisitorTest.cpp438 bool VisitCXXConstructorDecl(CXXConstructorDecl* Ctor) { argument
439 if (Ctor->isImplicit()) { // Was not written in source code
440 if (const CXXRecordDecl* Class = Ctor->getParent()) {
441 Match(Class->getName(), Ctor->getLocation());
477 if (const CXXConstructorDecl* Ctor = Expr->getConstructor()) {
478 if (const CXXRecordDecl* Class = Ctor->getParent()) {
/external/clang/lib/CodeGen/
H A DCGClass.cpp651 static bool IsConstructorDelegationValid(const CXXConstructorDecl *Ctor) { argument
665 if (Ctor->getParent()->getNumVBases()) {
685 if (Ctor->getType()->getAs<FunctionProtoType>()->isVariadic())
689 if (Ctor->isDelegatingConstructor())
697 const CXXConstructorDecl *Ctor = cast<CXXConstructorDecl>(CurGD.getDecl()); local
706 if (CtorType == Ctor_Complete && IsConstructorDelegationValid(Ctor) &&
709 DI->EmitLocation(Builder, Ctor->getLocEnd());
710 EmitDelegateCXXConstructorCall(Ctor, Ctor_Base, Args, Ctor->getLocEnd());
714 Stmt *Body = Ctor
1735 EmitDelegateCXXConstructorCall(const CXXConstructorDecl *Ctor, CXXCtorType CtorType, const FunctionArgList &Args, SourceLocation Loc) argument
1792 EmitDelegatingCXXConstructorCall(const CXXConstructorDecl *Ctor, const FunctionArgList &Args) argument
[all...]
/external/clang/test/CodeGenCXX/
H A Dconst-init-cxx11.cpp432 struct Ctor { constexpr Ctor(int n) : k(n) {} int k; }; function in struct:LocalVarInit::Ctor
450 int ctor() { constexpr Ctor a = { f(102) }; return a.k; }
/external/clang/lib/Sema/
H A DJumpDiagnostics.cpp184 const CXXConstructorDecl *Ctor = CCE->getConstructor(); local
185 if (Ctor->isTrivial() && Ctor->isDefaultConstructor() &&
189 else if (!Ctor->getParent()->isPOD())
/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 5172 milliseconds

12