Home
last modified time | relevance | path

Searched refs:CXXConstructorDecl (Results 1 – 25 of 170) sorted by relevance

1234567

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DPassByValueCheck.cpp41 for (const CXXConstructorDecl *Ctor : Node.ctors()) { in AST_MATCHER()
61 static bool paramReferredExactlyOnce(const CXXConstructorDecl *Ctor, in paramReferredExactlyOnce()
78 bool hasExactlyOneUsageIn(const CXXConstructorDecl *Ctor) { in paramReferredExactlyOnce()
80 TraverseDecl(const_cast<CXXConstructorDecl *>(Ctor)); in paramReferredExactlyOnce()
131 static bool hasRValueOverload(const CXXConstructorDecl *Ctor, in hasRValueOverload()
142 const auto IsRValueOverload = [&Ctor, ParamIdx](const CXXConstructorDecl *C) { in hasRValueOverload()
180 collectParamDecls(const CXXConstructorDecl *Ctor, in collectParamDecls()
244 const auto *Ctor = Result.Nodes.getNodeAs<CXXConstructorDecl>("Ctor"); in check()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DGlobalDecl.h61 assert(!isa<CXXConstructorDecl>(D) && "Use other ctor with ctor decls!"); in Init()
89 GlobalDecl(const CXXConstructorDecl *D, CXXCtorType Type) : Value(D, Type) {} in GlobalDecl()
106 assert(isa<CXXConstructorDecl>(getDecl()) && "Decl is not a ctor!"); in getCtorType()
126 !isa<CXXConstructorDecl>(getDecl()) && in getMultiVersionIndex()
170 assert(isa<CXXConstructorDecl>(getDecl())); in getWithCtorType()
186 !isa<CXXConstructorDecl>(getDecl()) && in getWithMultiVersionIndex()
H A DMangle.h30 class CXXConstructorDecl; variable
140 void mangleCtorBlock(const CXXConstructorDecl *CD, CXXCtorType CT,
193 virtual void mangleCXXCtorComdat(const CXXConstructorDecl *D,
258 virtual void mangleCXXCatchableType(QualType T, const CXXConstructorDecl *CD,
H A DDeclCXX.h61 class CXXConstructorDecl; variable
1891 CXXConstructorDecl *Ctor) in CXXDeductionGuideDecl()
1900 CXXConstructorDecl *Ctor;
1912 CXXConstructorDecl *Ctor = nullptr);
2410 CXXConstructorDecl *BaseCtor = nullptr;
2415 CXXConstructorDecl *BaseCtor) in InheritedConstructor()
2434 class CXXConstructorDecl final
2489 static CXXConstructorDecl *
2595 CXXConstructorDecl *getTargetConstructor() const;
2679 CXXConstructorDecl *getCanonicalDecl() override { in getCanonicalDecl()
[all …]
/llvm-project-15.0.7/clang/test/AST/
H A Dast-dump-implicit-members.clcpp10 // CHECK: CXXConstructorDecl {{.*}} implicit used constexpr S 'void (){{.*}} __generic noexcept'
11 // CHECK: CXXConstructorDecl {{.*}} implicit constexpr S 'void (const __generic S &){{.*}} __generi…
12 // CHECK: CXXConstructorDecl {{.*}} implicit constexpr S 'void (__generic S &&){{.*}} __generic'
H A Dast-dump-decl.mm43 // CHECK-NEXT: CXXConstructorDecl{{.*}} 'void ()
45 // CHECK-NEXT: CXXConstructorDecl{{.*}} 'void (const X &)
47 // CHECK-NEXT: CXXConstructorDecl{{.*}} 'void (X &&)
/llvm-project-15.0.7/clang/lib/AST/
H A DCXXABI.h22 class CXXConstructorDecl; variable
57 CXXConstructorDecl *) = 0;
60 virtual const CXXConstructorDecl *
H A DDeclCXX.cpp2433 if (isa<CXXConstructorDecl>(this)) return nullptr; in begin_overridden_methods()
2438 if (isa<CXXConstructorDecl>(this)) return nullptr; in end_overridden_methods()
2443 if (isa<CXXConstructorDecl>(this)) return 0; in size_overridden_methods()
2449 if (isa<CXXConstructorDecl>(this)) in overridden_methods()
2585 CXXConstructorDecl::CXXConstructorDecl( in CXXConstructorDecl() function in CXXConstructorDecl
2603 void CXXConstructorDecl::anchor() {} in anchor()
2605 CXXConstructorDecl *CXXConstructorDecl::CreateDeserialized(ASTContext &C, in CreateDeserialized()
2625 CXXConstructorDecl *CXXConstructorDecl::Create( in Create()
2637 return new (C, RD, Extra) CXXConstructorDecl( in Create()
2642 CXXConstructorDecl::init_const_iterator CXXConstructorDecl::init_begin() const { in init_begin()
[all …]
H A DMangle.cpp271 void MangleContext::mangleCtorBlock(const CXXConstructorDecl *CD, in mangleCtorBlock()
291 assert(!isa<CXXConstructorDecl>(DC) && !isa<CXXDestructorDecl>(DC)); in mangleBlock()
305 if (const auto *CD = dyn_cast<CXXConstructorDecl>(DC)) in mangleBlock()
493 if (const auto *CD = dyn_cast_or_null<CXXConstructorDecl>(ND)) { in getAllManglings()
526 if (const auto *CtorD = dyn_cast<CXXConstructorDecl>(D)) in writeFuncOrVarName()
555 if (const auto *CD = dyn_cast_or_null<CXXConstructorDecl>(ND)) in getMangledStructor()
H A DMicrosoftCXXABI.cpp111 llvm::SmallDenseMap<CXXRecordDecl *, CXXConstructorDecl *> RecordToCopyCtor;
151 const CXXConstructorDecl *
158 CXXConstructorDecl *CD) override { in addCopyConstructorForExceptionObject()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DProTypeMemberInitCheck.h53 const CXXConstructorDecl *Ctor);
59 const CXXConstructorDecl *Ctor);
H A DProTypeMemberInitCheck.cpp131 const CXXConstructorDecl &Constructor) const { in getLocation()
190 computeInsertions(const CXXConstructorDecl::init_const_range &Inits, in computeInsertions()
248 const CXXConstructorDecl *Ctor, in fixInitializerList()
313 if (const auto *Ctor = Result.Nodes.getNodeAs<CXXConstructorDecl>("ctor")) { in check()
413 const CXXConstructorDecl *Ctor) { in checkMissingMemberInitializer()
513 const CXXConstructorDecl *Ctor) { in checkMissingBaseClassInitializer()
H A DPreferMemberInitializerCheck.cpp70 const CXXConstructorDecl *Context) { in isSafeAssignment()
88 const CXXConstructorDecl *Ctor) { in isAssignmentToMemberOf()
152 const auto *Ctor = Result.Nodes.getNodeAs<CXXConstructorDecl>("ctor"); in check()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DSpecialMembers.cpp38 if (const auto *C = llvm::dyn_cast<CXXConstructorDecl>(M)) { in buildSpecialMemberDeclarations()
127 if (const auto *CCD = llvm::dyn_cast<CXXConstructorDecl>(D)) in apply()
133 {[](const Decl *D) { return llvm::isa<CXXConstructorDecl>(D); }, in apply()
H A DMemberwiseConstructor.cpp67 for (const CXXConstructorDecl *CCD : Class->ctors()) { in prepare()
103 if (const auto *CCD = llvm::dyn_cast<CXXConstructorDecl>(D)) in apply()
109 {[](const Decl *D) { return llvm::isa<CXXConstructorDecl>(D); }, in apply()
194 for (const CXXConstructorDecl *CCD : C.ctors()) { in considerClassValue()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/
H A DUninitializedObjectChecker.cpp109 getConstructedRegion(const CXXConstructorDecl *CtorDecl,
115 static bool willObjectBeAnalyzedLater(const CXXConstructorDecl *Ctor,
139 const auto *CtorDecl = dyn_cast_or_null<CXXConstructorDecl>( in checkEndFunction()
456 getConstructedRegion(const CXXConstructorDecl *CtorDecl, in getConstructedRegion()
471 static bool willObjectBeAnalyzedLater(const CXXConstructorDecl *Ctor, in willObjectBeAnalyzedLater()
482 const auto *OtherCtor = dyn_cast<CXXConstructorDecl>(LC->getDecl()); in willObjectBeAnalyzedLater()
514 if (isa<CXXConstructorDecl>(M)) in getMethodBody()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DUndefinedArraySubscriptChecker.cpp44 if (const CXXConstructorDecl *Ctor = dyn_cast<CXXConstructorDecl>(D)) in checkPreStmt()
/llvm-project-15.0.7/clang/test/SemaOpenCLCXX/
H A Daddrspace-constructors.clcpp8 //CHECK: CXXConstructorDecl
12 //CHECK: CXXConstructorDecl {{.*}} used X 'void (){{.*}} __private'
14 //CHECK: CXXConstructorDecl {{.*}} used X 'void (){{.*}} __global'
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DMoveConstructorInitCheck.cpp39 const auto *CopyCtor = Result.Nodes.getNodeAs<CXXConstructorDecl>("ctor"); in check()
58 const CXXConstructorDecl *Candidate = nullptr; in check()
/llvm-project-15.0.7/clang/unittests/AST/
H A DStructuralEquivalenceTest.cpp548 auto t = makeDecls<CXXConstructorDecl>("struct X { X(); };", in TEST_F()
555 auto t = makeDecls<CXXConstructorDecl>("struct X { X(int); };", in TEST_F()
563 auto t = makeDecls<CXXConstructorDecl>("struct X { X(); };", in TEST_F()
915 CXXConstructorDecl *First = FirstDeclMatcher<CXXConstructorDecl>().match( in TEST_F()
917 CXXConstructorDecl *Second = FirstDeclMatcher<CXXConstructorDecl>().match( in TEST_F()
925 CXXConstructorDecl *First = FirstDeclMatcher<CXXConstructorDecl>().match( in TEST_F()
927 CXXConstructorDecl *Second = FirstDeclMatcher<CXXConstructorDecl>().match( in TEST_F()
1361 CXXConstructorDecl *First = FirstDeclMatcher<CXXConstructorDecl>().match( in TEST_F()
1363 CXXConstructorDecl *Second = FirstDeclMatcher<CXXConstructorDecl>().match( in TEST_F()
1372 CXXConstructorDecl *First = FirstDeclMatcher<CXXConstructorDecl>().match( in TEST_F()
[all …]
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCodeGenTypes.h33 class CXXConstructorDecl; variable
238 const CXXConstructorDecl *D,
250 const CGFunctionInfo &arrangeMSCtorClosure(const CXXConstructorDecl *CD,
H A DCGCXXABI.h30 class CXXConstructorDecl; variable
308 virtual void EmitCXXConstructors(const CXXConstructorDecl *D) = 0;
409 getImplicitConstructorArgs(CodeGenFunction &CGF, const CXXConstructorDecl *D,
418 addImplicitConstructorArgs(CodeGenFunction &CGF, const CXXConstructorDecl *D,
510 virtual size_t getSrcArgforCopyCtor(const CXXConstructorDecl *,
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DExternalSemaSource.h28 class CXXConstructorDecl; variable
126 SmallVectorImpl<CXXConstructorDecl *> &Decls) {} in ReadDelegatingConstructors()
/llvm-project-15.0.7/clang/include/clang/CodeGen/
H A DCodeGenABITypes.h41 class CXXConstructorDecl; variable
86 getImplicitCXXConstructorArgs(CodeGenModule &CGM, const CXXConstructorDecl *D);
/llvm-project-15.0.7/clang-tools-extra/clang-reorder-fields/
H A DReorderFieldsAction.cpp161 const CXXConstructorDecl *CtorDecl, ArrayRef<unsigned> NewFieldsOrder, in reorderFieldsInConstructor()
282 if (const auto *D = dyn_cast<CXXConstructorDecl>(C->getDefinition())) in HandleTranslationUnit()
283 reorderFieldsInConstructor(cast<const CXXConstructorDecl>(D), in HandleTranslationUnit()

1234567