Home
last modified time | relevance | path

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

123456789

/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DASTLambda.h28 inline bool isLambdaCallOperator(const CXXMethodDecl *MD) { in isLambdaCallOperator()
35 if (!DC || !isa<CXXMethodDecl>(DC)) return false; in isLambdaCallOperator()
36 return isLambdaCallOperator(cast<CXXMethodDecl>(DC)); in isLambdaCallOperator()
40 if (const auto *MD = dyn_cast_if_present<CXXMethodDecl>(DC)) in isLambdaMethod()
47 cast<CXXMethodDecl>(DC)->isExplicitObjectMemberFunction(); in isLambdaCallWithExplicitObjectParameter()
56 !cast<CXXMethodDecl>(DC)->getType().isNull() && in isLambdaCallWithImplicitObjectParameter()
57 !cast<CXXMethodDecl>(DC)->isExplicitObjectMemberFunction(); in isLambdaCallWithImplicitObjectParameter()
60 inline bool isGenericLambdaCallOperatorSpecialization(const CXXMethodDecl *MD) { in isGenericLambdaCallOperatorSpecialization()
86 dyn_cast<CXXMethodDecl>(DC)); in isGenericLambdaCallOperatorSpecialization()
91 const auto *MD = dyn_cast<CXXMethodDecl>(DC); in isGenericLambdaCallOperatorOrStaticInvokerSpecialization()
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
655 using method_iterator = specific_decl_iterator<CXXMethodDecl>;
657 llvm::iterator_range<specific_decl_iterator<CXXMethodDecl>>;
1044 CXXMethodDecl *getLambdaCallOperator() const;
1057 CXXMethodDecl *getLambdaStaticInvoker() const;
1058 CXXMethodDecl *getLambdaStaticInvoker(CallingConv CC) const;
1482 void addedEligibleSpecialMemberFunction(const CXXMethodDecl *MD, unsigned SMKind);
1739 void finishedDefaultedOrDeletedMember(CXXMethodDecl *MD);
1741 void setTrivialForCallFlags(CXXMethodDecl *MD);
2124 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.cpp779 if (const auto *Method = dyn_cast<CXXMethodDecl>(D)) { in addedMember()
894 if (const auto *Method = dyn_cast<CXXMethodDecl>(D)) { in addedMember()
1543 void CXXRecordDecl::addedEligibleSpecialMemberFunction(const CXXMethodDecl *MD, in addedEligibleSpecialMemberFunction()
1589 void CXXRecordDecl::finishedDefaultedOrDeletedMember(CXXMethodDecl *D) { in finishedDefaultedOrDeletedMember()
1658 void CXXRecordDecl::setTrivialForCallFlags(CXXMethodDecl *D) { in setTrivialForCallFlags()
1749 CXXMethodDecl *CXXRecordDecl::getLambdaCallOperator() const { in getLambdaCallOperator()
1756 return cast<CXXMethodDecl>(CallOpTmpl->getTemplatedDecl()); in getLambdaCallOperator()
1758 return cast<CXXMethodDecl>(CallOp); in getLambdaCallOperator()
1761 CXXMethodDecl* CXXRecordDecl::getLambdaStaticInvoker() const { in getLambdaStaticInvoker()
1762 CXXMethodDecl *CallOp = getLambdaCallOperator(); in getLambdaStaticInvoker()
[all …]
H A DItaniumCXXABI.cpp142 unsigned getManglingNumber(const CXXMethodDecl *CallOperator) override { in getManglingNumber()
189 llvm::DenseMap<const CXXMethodDecl *, unsigned> ManglingNumbers;
196 unsigned getManglingNumber(const CXXMethodDecl *CallOperator) override { in getManglingNumber()
207 unsigned getDeviceManglingNumber(const CXXMethodDecl *CallOperator) override { in getDeviceManglingNumber()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/Models/
H A DChromiumCheckModel.cpp20 isCheckLikeMethod(llvm::SmallDenseSet<const CXXMethodDecl *> &CheckDecls, in isCheckLikeMethod()
21 const CXXMethodDecl &D) { in isCheckLikeMethod()
46 for (const CXXMethodDecl *M : ParentClass->methods()) in isCheckLikeMethod()
61 dyn_cast_or_null<CXXMethodDecl>(Call->getDirectCallee())) { in transfer()
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
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 DContext.cpp366 const CXXMethodDecl *
369 const CXXMethodDecl *InitialFunction) const { in getOverridingFunction()
375 const CXXMethodDecl *FoundFunction = InitialFunction; in getOverridingFunction()
377 const CXXMethodDecl *Overrider = in getOverridingFunction()
416 if (const auto *MD = dyn_cast<CXXMethodDecl>(FuncDecl); in getOrCreateFunction()
428 const CXXMethodDecl *LambdaCallOp = ClosureClass->getLambdaCallOperator(); in getOrCreateFunction()
464 if (const auto *MD = dyn_cast<CXXMethodDecl>(FuncDecl)) { in getOrCreateFunction()
H A DContext.h90 const CXXMethodDecl *
93 const CXXMethodDecl *InitialFunction) const;
/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DUSRFindingAction.cpp64 if (const auto *MethodDecl = dyn_cast<CXXMethodDecl>(FoundDecl)) { in Find()
100 bool VisitCXXMethodDecl(const CXXMethodDecl *MethodDecl) { in VisitCXXMethodDecl()
172 void addUSRsOfOverridenFunctions(const CXXMethodDecl *MethodDecl) { in addUSRsOfOverridenFunctions()
179 void addUSRsOfInstantiatedMethods(const CXXMethodDecl *MethodDecl) { in addUSRsOfInstantiatedMethods()
193 bool checkIfOverriddenFunctionAscends(const CXXMethodDecl *MethodDecl) { in checkIfOverriddenFunctionAscends()
205 std::vector<const CXXMethodDecl *> OverriddenMethods;
206 std::vector<const CXXMethodDecl *> InstantiatedMethods;
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DVirtualCallChecker.cpp86 const CXXMethodDecl *MD = in REGISTER_MAP_WITH_PROGRAMSTATE()
87 dyn_cast_or_null<CXXMethodDecl>(CE->getDirectCallee()); in REGISTER_MAP_WITH_PROGRAMSTATE()
111 const CXXMethodDecl *MD = dyn_cast_or_null<CXXMethodDecl>(Call.getDecl()); in checkPreCall()
176 const auto *MD = dyn_cast_or_null<CXXMethodDecl>(LCtx->getDecl()); in registerCtorDtorCallInState()
H A DMoveChecker.cpp223 bool isStateResetMethod(const CXXMethodDecl *MethodDec) const;
224 bool isMoveSafeMethod(const CXXMethodDecl *MethodDec) const;
449 const auto MethodDecl = dyn_cast_or_null<CXXMethodDecl>(AFC->getDecl()); in checkPostCall()
497 bool MoveChecker::isMoveSafeMethod(const CXXMethodDecl *MethodDec) const { in isMoveSafeMethod()
513 bool MoveChecker::isStateResetMethod(const CXXMethodDecl *MethodDec) const { in isStateResetMethod()
537 auto *MethodDec = dyn_cast_or_null<CXXMethodDecl>(CtxDec); in isInMoveSafeContext()
633 const auto MethodDecl = dyn_cast_or_null<CXXMethodDecl>(IC->getDecl()); in checkPreCall()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenTypes.h34 class CXXMethodDecl; variable
114 CanQualType DeriveThisType(const CXXRecordDecl *RD, const CXXMethodDecl *MD);
255 const CGFunctionInfo &arrangeCXXMethodDeclaration(const CXXMethodDecl *MD);
269 arrangeUnprototypedMustTailThunk(const CXXMethodDecl *MD);
274 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()
783 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()); in addVTableComponent()
827 if (cast<CXXMethodDecl>(GD.getDecl())->isPureVirtual()) { in addVTableComponent()
[all …]
/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/lib/CIR/CodeGen/
H A DCIRGenTypes.h92 const clang::CXXMethodDecl *md);
180 arrangeCXXMethodDeclaration(const clang::CXXMethodDecl *md);
186 const clang::CXXMethodDecl *md);
H A DCIRGenFunction.cpp392 if (isa_and_nonnull<CXXMethodDecl>(d) && in startFunction()
393 cast<CXXMethodDecl>(d)->isInstance()) { in startFunction()
396 const auto *md = cast<CXXMethodDecl>(d); in startFunction()
472 } else if (isa<CXXMethodDecl>(funcDecl) && in generateCode()
473 cast<CXXMethodDecl>(funcDecl)->isLambdaStaticInvoker()) { in generateCode()
475 } else if (funcDecl->isDefaulted() && isa<CXXMethodDecl>(funcDecl) && in generateCode()
476 (cast<CXXMethodDecl>(funcDecl)->isCopyAssignmentOperator() || in generateCode()
477 cast<CXXMethodDecl>(funcDecl)->isMoveAssignmentOperator())) { in generateCode()
659 const auto *md = dyn_cast<CXXMethodDecl>(fd); in buildFunctionArgList()
H A DCIRGenItaniumCXXABI.cpp97 const CXXMethodDecl *md) { in getCIRGenToUse()
161 auto *md = cast<CXXMethodDecl>(gd.getDecl()); in emitCXXStructor()
226 auto *md = cast<CXXMethodDecl>(gd.getDecl()); in needsVTTParameter()
H A DCIRGenCXXExpr.cpp32 CIRGenFunction &cgf, const CXXMethodDecl *md, mlir::Value thisPtr, in commonBuildCXXMemberOrOperatorCall()
77 const CallExpr *ce, const CXXMethodDecl *md, ReturnValueSlot returnValue, in emitCXXMemberOrOperatorMemberCallExpr()
130 const CXXMethodDecl *calleeDecl = md; in emitCXXMemberOrOperatorMemberCallExpr()
167 const CXXMethodDecl *md, in emitCXXOperatorMemberCallExpr()
177 const CXXMethodDecl *md, const CIRGenCallee &callee, in emitCXXMemberOrOperatorCall()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaCUDA.h214 void CheckLambdaCapture(CXXMethodDecl *D, const sema::Capture &Capture);
221 void SetLambdaAttrs(CXXMethodDecl *Method);
248 CXXMethodDecl *MemberDecl,
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DLoopWidening.cpp69 const CXXMethodDecl *CXXMD = dyn_cast<CXXMethodDecl>(STC->getDecl()); in getWidenedLoopState()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaLambda.cpp414 CXXMethodDecl *Method, SourceLocation CallLoc) { in DiagnoseInvalidExplicitObjectParameterInLambda()
477 CXXRecordDecl *Class, CXXMethodDecl *Method, in handleLambdaNumbering()
530 CXXMethodDecl *CallOperator, in buildLambdaScopeReturnType()
543 void Sema::buildLambdaScope(LambdaScopeInfo *LSI, CXXMethodDecl *CallOperator, in buildLambdaScope()
993 CXXMethodDecl *Sema::CreateLambdaCallOperator(SourceRange IntroducerRange, in CreateLambdaCallOperator()
1006 CXXMethodDecl *Method = CXXMethodDecl::Create( in CreateLambdaCallOperator()
1019 CXXMethodDecl *CallOperator, CXXRecordDecl *Class, in AddTemplateParametersToLambdaCallOperator()
1030 CXXMethodDecl *Method, SourceLocation LambdaLoc, in CompleteLambdaCallOperator()
1130 CXXMethodDecl *Method = CreateLambdaCallOperator(Intro.Range, Class); in ActOnLambdaExpressionAfterIntroducer()
1438 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()

123456789