Home
last modified time | relevance | path

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

1234567

/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DVTableBuilder.h71 static VTableComponent MakeFunction(const CXXMethodDecl *MD) { in MakeFunction()
89 static VTableComponent MakeUnusedFunction(const CXXMethodDecl *MD) { in MakeUnusedFunction()
124 const CXXMethodDecl *getFunctionDecl() const { in getFunctionDecl()
128 return reinterpret_cast<CXXMethodDecl *>(getPointer()); in getFunctionDecl()
136 const CXXMethodDecl *getUnusedFunctionDecl() const { in getUnusedFunctionDecl()
138 return reinterpret_cast<CXXMethodDecl *>(getPointer()); in getUnusedFunctionDecl()
330 typedef llvm::DenseMap<const CXXMethodDecl *, ThunkInfoVectorTy> ThunksMapTy;
343 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()->getCanonicalDecl()); in getThunkInfo()
360 static bool hasVtableSlot(const CXXMethodDecl *MD);
365 typedef llvm::DenseMap<const CXXMethodDecl *, const CXXMethodDecl *>
[all …]
H A DMangleNumberingContext.h23 class CXXMethodDecl; variable
38 virtual unsigned getManglingNumber(const CXXMethodDecl *CallOperator) = 0;
60 virtual unsigned getDeviceManglingNumber(const CXXMethodDecl *) { return 0; } in getDeviceManglingNumber() argument
H A DDeclCXX.h65 class CXXMethodDecl; variable
657 using method_iterator = specific_decl_iterator<CXXMethodDecl>;
659 llvm::iterator_range<specific_decl_iterator<CXXMethodDecl>>;
1039 CXXMethodDecl *getLambdaCallOperator() const;
1052 CXXMethodDecl *getLambdaStaticInvoker() const;
1053 CXXMethodDecl *getLambdaStaticInvoker(CallingConv CC) const;
1481 void addedEligibleSpecialMemberFunction(const CXXMethodDecl *MD, unsigned SMKind);
1739 void finishedDefaultedOrDeletedMember(CXXMethodDecl *MD);
1741 void setTrivialForCallFlags(CXXMethodDecl *MD);
2067 class CXXMethodDecl : public FunctionDecl {
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DVTableBuilder.cpp67 const CXXMethodDecl *Method;
102 typedef std::pair<const CXXMethodDecl *, CharUnits> MethodBaseOffsetPairTy;
141 OverriderInfo getOverrider(const CXXMethodDecl *MD, in getOverrider()
181 const CXXMethodDecl *MD = Overrider.first; in FinalOverriders()
272 const CXXMethodDecl *DerivedMD, in ComputeReturnAdjustmentBaseOffset()
273 const CXXMethodDecl *BaseMD) { in ComputeReturnAdjustmentBaseOffset()
445 typedef std::pair<const CXXMethodDecl *, CharUnits> MethodAndOffsetPairTy;
453 static bool MethodsCanShareVCallOffset(const CXXMethodDecl *LHS,
454 const CXXMethodDecl *RHS);
460 bool AddVCallOffset(const CXXMethodDecl *MD, CharUnits OffsetOffset);
[all …]
H A DDeclCXX.cpp772 if (const auto *Method = dyn_cast<CXXMethodDecl>(D)) { in addedMember()
887 if (const auto *Method = dyn_cast<CXXMethodDecl>(D)) { in addedMember()
1459 void CXXRecordDecl::addedEligibleSpecialMemberFunction(const CXXMethodDecl *MD, in addedEligibleSpecialMemberFunction()
1506 void CXXRecordDecl::finishedDefaultedOrDeletedMember(CXXMethodDecl *D) { in finishedDefaultedOrDeletedMember()
1575 void CXXRecordDecl::setTrivialForCallFlags(CXXMethodDecl *D) { in setTrivialForCallFlags()
1633 CXXMethodDecl *CXXRecordDecl::getLambdaCallOperator() const { in getLambdaCallOperator()
1640 return cast<CXXMethodDecl>(CallOpTmpl->getTemplatedDecl()); in getLambdaCallOperator()
1642 return cast<CXXMethodDecl>(CallOp); in getLambdaCallOperator()
1645 CXXMethodDecl* CXXRecordDecl::getLambdaStaticInvoker() const { in getLambdaStaticInvoker()
1646 CXXMethodDecl *CallOp = getLambdaCallOperator(); in getLambdaStaticInvoker()
[all …]
H A DItaniumCXXABI.cpp143 unsigned getManglingNumber(const CXXMethodDecl *CallOperator) override { in getManglingNumber()
190 llvm::DenseMap<const CXXMethodDecl *, unsigned> ManglingNumbers;
197 unsigned getManglingNumber(const CXXMethodDecl *CallOperator) override { in getManglingNumber()
208 unsigned getDeviceManglingNumber(const CXXMethodDecl *CallOperator) override { in getDeviceManglingNumber()
H A DMangle.cpp227 if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(FD)) in mangleName()
479 if (!(isa<CXXRecordDecl>(D) || isa<CXXMethodDecl>(D))) in getAllManglings()
489 auto hasDefaultCXXMethodCC = [](ASTContext &C, const CXXMethodDecl *MD) { in getAllManglings()
514 } else if (const auto *MD = dyn_cast_or_null<CXXMethodDecl>(ND)) { in getAllManglings()
582 std::string getMangledThunk(const CXXMethodDecl *MD, const ThunkInfo &T, in getMangledThunk()
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DMemberPointer.h40 assert((isa<FieldDecl, IndirectFieldDecl, CXXMethodDecl>(D))); in MemberPointer()
60 return isa_and_nonnull<CXXMethodDecl>(Dcl); in isMemberFunctionPointer()
62 const CXXMethodDecl *getMemberFunction() const { in getMemberFunction()
63 return dyn_cast_if_present<CXXMethodDecl>(Dcl); in getMemberFunction()
H A DFunction.h147 if (const auto *MD = dyn_cast<CXXMethodDecl>(F)) in getParentDecl()
155 if (const auto *MD = dyn_cast<CXXMethodDecl>(F)) in isLambdaStaticInvoker()
163 if (const auto *MD = dyn_cast<CXXMethodDecl>(F)) in isLambdaCallOperator()
200 if (const auto *MD = dyn_cast<CXXMethodDecl>(F)) in isThisPointerExplicit()
H A DByteCodeEmitter.cpp42 if (const auto *MD = dyn_cast<CXXMethodDecl>(FuncDecl); in compileFunc()
54 const CXXMethodDecl *LambdaCallOp = ClosureClass->getLambdaCallOperator(); in compileFunc()
65 FuncDecl = cast<CXXMethodDecl>(CorrespondingCallOpSpecialization); in compileFunc()
91 if (const auto *MD = dyn_cast<CXXMethodDecl>(FuncDecl)) { in compileFunc()
172 if (const auto *MD = dyn_cast<CXXMethodDecl>(FuncDecl)) in compileFunc()
H A DContext.cpp222 const CXXMethodDecl *
225 const CXXMethodDecl *InitialFunction) const { in getOverridingFunction()
231 const CXXMethodDecl *FoundFunction = InitialFunction; in getOverridingFunction()
233 const CXXMethodDecl *Overrider = in getOverridingFunction()
H A DContext.h88 const CXXMethodDecl *
91 const CXXMethodDecl *InitialFunction) const;
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenTypes.h34 class CXXMethodDecl; variable
114 CanQualType DeriveThisType(const CXXRecordDecl *RD, const CXXMethodDecl *MD);
248 const CGFunctionInfo &arrangeCXXMethodDeclaration(const CXXMethodDecl *MD);
262 arrangeUnprototypedMustTailThunk(const CXXMethodDecl *MD);
267 const CXXMethodDecl *MD);
H A DCGVTables.cpp169 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()); in GenerateVarArgsThunk()
256 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()); in StartThunk()
307 assert(isa<CXXMethodDecl>(CurGD.getDecl()) && in EmitCallAndReturnForThunk()
309 const CXXMethodDecl *MD = cast<CXXMethodDecl>(CurGD.getDecl()); in EmitCallAndReturnForThunk()
485 static bool shouldEmitVTableThunk(CodeGenModule &CGM, const CXXMethodDecl *MD, in shouldEmitVTableThunk()
506 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()); in maybeEmitThunk()
626 const CXXMethodDecl *MD = in EmitThunks()
627 cast<CXXMethodDecl>(GD.getDecl())->getCanonicalDecl(); in EmitThunks()
779 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()); in addVTableComponent()
820 if (cast<CXXMethodDecl>(GD.getDecl())->isPureVirtual()) { in addVTableComponent()
[all …]
H A DCGCXX.cpp216 SetLLVMFunctionAttributesForDefinition(cast<CXXMethodDecl>(GD.getDecl()), Fn); in codegenCXXStructor()
223 auto *MD = cast<CXXMethodDecl>(GD.getDecl()); in getAddrAndTypeOfCXXStructor()
283 CodeGenFunction::BuildAppleKextVirtualCall(const CXXMethodDecl *MD, in BuildAppleKextVirtualCall()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DThunk.h23 class CXXMethodDecl; variable
172 const CXXMethodDecl *Method;
178 const Type *ThisT, const CXXMethodDecl *Method = nullptr)
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaCUDA.h204 void CheckLambdaCapture(CXXMethodDecl *D, const sema::Capture &Capture);
211 void SetLambdaAttrs(CXXMethodDecl *Method);
238 CXXMethodDecl *MemberDecl,
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DPtrTypesSemantics.h19 class CXXMethodDecl; variable
64 std::optional<bool> isGetterOfRefCounted(const clang::CXXMethodDecl* Method);
H A DUncountedCallArgsChecker.cpp80 unsigned ArgIdx = isa<CXXOperatorCallExpr>(CE) && isa_and_nonnull<CXXMethodDecl>(F); in visitCallExpr()
167 if (auto *calleeDecl = dyn_cast<CXXMethodDecl>(callee)) { in shouldSkipCall()
213 if (!isa<CXXMethodDecl>(Decl)) in isMethodOnWTFContainerType()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DMoveChecker.cpp221 bool isStateResetMethod(const CXXMethodDecl *MethodDec) const;
222 bool isMoveSafeMethod(const CXXMethodDecl *MethodDec) const;
446 const auto MethodDecl = dyn_cast_or_null<CXXMethodDecl>(AFC->getDecl()); in checkPostCall()
494 bool MoveChecker::isMoveSafeMethod(const CXXMethodDecl *MethodDec) const { in isMoveSafeMethod()
510 bool MoveChecker::isStateResetMethod(const CXXMethodDecl *MethodDec) const { in isStateResetMethod()
534 auto *MethodDec = dyn_cast_or_null<CXXMethodDecl>(CtxDec); in isInMoveSafeContext()
629 const auto MethodDecl = dyn_cast_or_null<CXXMethodDecl>(IC->getDecl()); in checkPreCall()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaLambda.cpp393 CXXMethodDecl *Method, SourceLocation CallLoc) { in DiagnoseInvalidExplicitObjectParameterInLambda()
456 CXXRecordDecl *Class, CXXMethodDecl *Method, in handleLambdaNumbering()
509 CXXMethodDecl *CallOperator, in buildLambdaScopeReturnType()
522 void Sema::buildLambdaScope(LambdaScopeInfo *LSI, CXXMethodDecl *CallOperator, in buildLambdaScope()
972 CXXMethodDecl *Sema::CreateLambdaCallOperator(SourceRange IntroducerRange, in CreateLambdaCallOperator()
985 CXXMethodDecl *Method = CXXMethodDecl::Create( in CreateLambdaCallOperator()
998 CXXMethodDecl *CallOperator, CXXRecordDecl *Class, in AddTemplateParametersToLambdaCallOperator()
1009 CXXMethodDecl *Method, SourceLocation LambdaLoc, in CompleteLambdaCallOperator()
1106 CXXMethodDecl *Method = CreateLambdaCallOperator(Intro.Range, Class); in ActOnLambdaExpressionAfterIntroducer()
1411 CXXMethodDecl *Method = LSI->CallOperator; in ActOnStartOfLambdaDefinition()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DInterfaceStubFunctionsConsumer.cpp59 if (isa<BlockDecl>(Parent) || isa<CXXMethodDecl>(Parent)) in WriteNamedDecl()
69 if (FD->isInlined() && !isa<CXXMethodDecl>(FD) && in WriteNamedDecl()
72 if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(FD)) { in WriteNamedDecl()
/freebsd/contrib/llvm-project/clang/include/clang/CodeGen/
H A DCodeGenABITypes.h44 class CXXMethodDecl; variable
76 const CXXMethodDecl *MD);
/freebsd/contrib/llvm-project/clang/lib/InstallAPI/
H A DVisitor.cpp252 if (const CXXMethodDecl *M = dyn_cast<CXXMethodDecl>(D)) { in VisitFunctionDecl()
313 const CXXMethodDecl *KeyFunctionD = in hasVTable()
354 const CXXMethodDecl *KeyFunctionD = in getVTableLinkage()
454 const auto *Method = cast<CXXMethodDecl>(D.getDecl()); in getMangledCXXThunk()
464 std::string InstallAPIVisitor::getMangledCtorDtor(const CXXMethodDecl *D, in getMangledCtorDtor()
/freebsd/contrib/llvm-project/lldb/tools/lldb-instr/
H A DInstrument.cpp30 bool VisitCXXMethodDecl(CXXMethodDecl *Decl) { in VisitCXXMethodDecl()
85 bool ShouldSkip(CXXMethodDecl *Decl) { in ShouldSkip()

1234567