Home
last modified time | relevance | path

Searched refs:Ctor (Results 1 – 25 of 73) 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/swiftshader/third_party/LLVM/lib/CodeGen/
DPasses.cpp51 RegisterRegAlloc::FunctionPassCtor Ctor = RegisterRegAlloc::getDefault(); in createRegisterAllocator() local
53 if (!Ctor) { in createRegisterAllocator()
54 Ctor = RegAlloc; in createRegisterAllocator()
60 if (Ctor == createLinearScanRegisterAllocator) in createRegisterAllocator()
63 if (Ctor != createDefaultRegisterAllocator) in createRegisterAllocator()
64 return Ctor(); in createRegisterAllocator()
/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/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/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/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/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()
/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/
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/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 __anon0d4272340111::__anon0d4272340211::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/include/llvm/CodeGen/
DMachinePassRegistry.h56 MachinePassCtor Ctor; // Function pass creator. variable
64 , Ctor(C) in MachinePassRegistryNode()
72 MachinePassCtor getCtor() const { return Ctor; } in getCtor()
/external/clang/lib/ASTMatchers/Dynamic/
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()
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()
/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/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/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 __anonca26aa8c0111::__anonca26aa8c0211::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/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/lib/StaticAnalyzer/Checkers/
DUndefinedArraySubscriptChecker.cpp45 if (const CXXConstructorDecl *Ctor = dyn_cast<CXXConstructorDecl>(D)) in checkPreStmt() local
46 if (Ctor->isDefaulted()) in checkPreStmt()
/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/include/llvm/Support/
DRegistry.h23 T *(*Ctor)(); variable
27 : Name(N), Desc(D), Ctor(C) in SimpleRegistryEntry()
32 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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/
DPassInfo.h92 void setNormalCtor(NormalCtor_t Ctor) { in setNormalCtor() argument
93 NormalCtor = Ctor; in setNormalCtor()

123