Home
last modified time | relevance | path

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

123

/external/clang/test/Parser/
Dcxx-class.cpp105 class Ctor { // expected-note{{not complete until the closing '}'}} class
106 Ctor(f)(int); // ok
107 Ctor(g(int)); // ok
108 Ctor(x[5]); // expected-error{{incomplete type}}
110 Ctor(UnknownType *); // expected-error{{unknown type name 'UnknownType'}}
114 Ctor::Ctor (x) = { 0 }; // \
117 Ctor::Ctor(UnknownType *) {} // \ in Ctor() function in ctor_error::Ctor
119 void Ctor::operator+(UnknownType*) {} // \ in operator +()
/external/clang/test/SemaCXX/
Ddeprecated.cpp76 struct Ctor { struct
77 Ctor();
78Ctor(const Ctor&); // expected-warning {{definition of implicit copy assignment operator for 'Ctor…
80 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/llvm/lib/Transforms/Utils/
DModuleUtils.cpp45 auto Ctor = cast<Constant>(Init->getOperand(i)); in appendToGlobalArray() local
47 Ctor = ConstantStruct::get( in appendToGlobalArray()
48 EltTy, Ctor->getAggregateElement((unsigned)0), in appendToGlobalArray()
49 Ctor->getAggregateElement(1), in appendToGlobalArray()
51 CurrentCtors.push_back(Ctor); in appendToGlobalArray()
109 Function *Ctor = Function::Create( in createSanitizerCtorAndInitFunctions() local
112 BasicBlock *CtorBB = BasicBlock::Create(M.getContext(), "", Ctor); in createSanitizerCtorAndInitFunctions()
127 return std::make_pair(Ctor, InitFunction); in createSanitizerCtorAndInitFunctions()
/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/swiftshader/third_party/llvm-7.0/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()
/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()
DTargetPassConfig.cpp735 RegisterRegAlloc::FunctionPassCtor Ctor = RegisterRegAlloc::getDefault(); in initializeDefaultRegisterAllocatorOnce() local
737 if (!Ctor) { in initializeDefaultRegisterAllocatorOnce()
738 Ctor = RegAlloc; in initializeDefaultRegisterAllocatorOnce()
773 RegisterRegAlloc::FunctionPassCtor Ctor = RegisterRegAlloc::getDefault(); in createRegAllocPass() local
774 if (Ctor != useDefaultRegisterAllocator) in createRegAllocPass()
775 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/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/internal/
DExceptionsConstuctor.kt15 private typealias Ctor = (Throwable) -> Throwable? in <lambda>() typealias
17 private val exceptionCtors: WeakHashMap<Class<out Throwable>, Ctor> = WeakHashMap() in <lambda>()
40 var ctor: Ctor? = null in <lambda>()
51 private fun createConstructor(constructor: Constructor<*>): Ctor? { in createConstructor()
71 private inline fun safeCtor(crossinline block: (Throwable) -> Throwable): Ctor = in safeCtor()
/external/llvm/include/llvm/
DPassInfo.h98 void setNormalCtor(NormalCtor_t Ctor) { in setNormalCtor() argument
99 NormalCtor = Ctor; in setNormalCtor()
108 void setTargetMachineCtor(TargetMachineCtor_t Ctor) { in setTargetMachineCtor() argument
109 TargetMachineCtor = Ctor; in setTargetMachineCtor()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DModuleUtils.cpp45 auto Ctor = cast<Constant>(Init->getOperand(i)); in appendToGlobalArray() local
47 Ctor = in appendToGlobalArray()
48 ConstantStruct::get(EltTy, Ctor->getAggregateElement((unsigned)0), in appendToGlobalArray()
49 Ctor->getAggregateElement(1), in appendToGlobalArray()
51 CurrentCtors.push_back(Ctor); in appendToGlobalArray()
161 Function *Ctor = Function::Create( in createSanitizerCtorAndInitFunctions() local
164 BasicBlock *CtorBB = BasicBlock::Create(M.getContext(), "", Ctor); in createSanitizerCtorAndInitFunctions()
174 return std::make_pair(Ctor, InitFunction); in createSanitizerCtorAndInitFunctions()
/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/llvm/unittests/ADT/
DStringMapTest.cpp390 static unsigned Ctor; member
394 CountCtorCopyAndMove(int Data) : Data(Data) { Ctor++; } in CountCtorCopyAndMove()
395 CountCtorCopyAndMove() { Ctor++; } in CountCtorCopyAndMove()
410 unsigned CountCtorCopyAndMove::Ctor = 0; member in __anon884106b60111::__anon884106b60211::CountCtorCopyAndMove
439 CountCtorCopyAndMove::Ctor = 0; in TEST()
441 EXPECT_EQ(1u, CountCtorCopyAndMove::Ctor); in TEST()
443 CountCtorCopyAndMove::Ctor = 0; in TEST()
445 EXPECT_EQ(0u, CountCtorCopyAndMove::Ctor); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/
DMachinePassRegistry.h56 MachinePassCtor Ctor; // Function pass creator. variable
60 : Name(N), Description(D), Ctor(C) {} in MachinePassRegistryNode()
67 MachinePassCtor getCtor() const { return Ctor; } in getCtor()
/external/clang/lib/ASTMatchers/Dynamic/
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, 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()
DRegistry.cpp476 MatcherCtor Ctor = CtxEntry.first; in getAcceptedCompletionTypes() local
481 Ctor->isConvertibleTo(Kind.getMatcherKind()) && in getAcceptedCompletionTypes()
482 (Ctor->isVariadic() || ArgNumber < Ctor->getNumArgs())) in getAcceptedCompletionTypes()
483 Ctor->getArgKinds(Kind.getMatcherKind(), ArgNumber, NextTypeSet); in getAcceptedCompletionTypes()
571 VariantMatcher Registry::constructMatcher(MatcherCtor Ctor, in constructMatcher() argument
575 return Ctor->create(NameRange, Args, Error); in constructMatcher()
579 VariantMatcher Registry::constructBoundMatcher(MatcherCtor Ctor, in constructBoundMatcher() argument
584 VariantMatcher Out = constructMatcher(Ctor, NameRange, Args, Error); in constructBoundMatcher()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/
DStringMapTest.cpp420 static unsigned Ctor; member
424 CountCtorCopyAndMove(int Data) : Data(Data) { Ctor++; } in CountCtorCopyAndMove()
425 CountCtorCopyAndMove() { Ctor++; } in CountCtorCopyAndMove()
440 unsigned CountCtorCopyAndMove::Ctor = 0; member in __anon8cca574e0111::__anon8cca574e0211::CountCtorCopyAndMove
469 CountCtorCopyAndMove::Ctor = 0; in TEST()
471 EXPECT_EQ(1u, CountCtorCopyAndMove::Ctor); in TEST()
473 CountCtorCopyAndMove::Ctor = 0; in TEST()
475 EXPECT_EQ(0u, CountCtorCopyAndMove::Ctor); in TEST()
/external/clang/lib/StaticAnalyzer/Checkers/
DUndefinedArraySubscriptChecker.cpp45 if (const CXXConstructorDecl *Ctor = dyn_cast<CXXConstructorDecl>(D)) in checkPreStmt() local
46 if (Ctor->isDefaulted()) in checkPreStmt()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DRegistry.h30 std::unique_ptr<T> (*Ctor)(); variable
34 : Name(N), Desc(D), Ctor(C) {} in SimpleRegistryEntry()
38 std::unique_ptr<T> instantiate() const { return Ctor(); } in instantiate()
/external/clang/include/clang/ASTMatchers/Dynamic/
DRegistry.h108 static VariantMatcher constructMatcher(MatcherCtor Ctor,
119 static VariantMatcher constructBoundMatcher(MatcherCtor Ctor,
/external/llvm/include/llvm/Support/
DRegistry.h29 std::unique_ptr<T> (*Ctor)(); variable
33 : Name(N), Desc(D), Ctor(C) in SimpleRegistryEntry()
38 std::unique_ptr<T> instantiate() const { return Ctor(); } in instantiate()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/
DPassInfo.h92 void setNormalCtor(NormalCtor_t Ctor) { in setNormalCtor() argument
93 NormalCtor = Ctor; in setNormalCtor()
/external/clang/lib/CodeGen/
DCGClass.cpp807 static bool IsConstructorDelegationValid(const CXXConstructorDecl *Ctor) { in IsConstructorDelegationValid() argument
821 if (Ctor->getParent()->getNumVBases()) { in IsConstructorDelegationValid()
841 if (Ctor->getType()->getAs<FunctionProtoType>()->isVariadic()) in IsConstructorDelegationValid()
845 if (Ctor->isDelegatingConstructor()) in IsConstructorDelegationValid()
919 const CXXConstructorDecl *Ctor = cast<CXXConstructorDecl>(CurGD.getDecl()); in EmitConstructorBody() local
928 if (CtorType == Ctor_Complete && IsConstructorDelegationValid(Ctor) && in EmitConstructorBody()
930 EmitDelegateCXXConstructorCall(Ctor, Ctor_Base, Args, Ctor->getLocEnd()); in EmitConstructorBody()
935 Stmt *Body = Ctor->getBody(Definition); in EmitConstructorBody()
936 assert(Definition == Ctor && "emitting wrong constructor body"); in EmitConstructorBody()
953 EmitCtorPrologue(Ctor, CtorType, Args); in EmitConstructorBody()
[all …]

123