Home
last modified time | relevance | path

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

12345678

/src/contrib/llvm-project/clang/include/clang/AST/
H A DASTLambda.h27 inline bool isLambdaCallOperator(const CXXMethodDecl *MD) { in isLambdaCallOperator()
34 if (!DC || !isa<CXXMethodDecl>(DC)) return false; in isLambdaCallOperator()
35 return isLambdaCallOperator(cast<CXXMethodDecl>(DC)); in isLambdaCallOperator()
40 cast<CXXMethodDecl>(DC)->isExplicitObjectMemberFunction(); in isLambdaCallWithExplicitObjectParameter()
49 !cast<CXXMethodDecl>(DC)->getType().isNull() && in isLambdaCallWithImplicitObjectParameter()
50 !cast<CXXMethodDecl>(DC)->isExplicitObjectMemberFunction(); in isLambdaCallWithImplicitObjectParameter()
53 inline bool isGenericLambdaCallOperatorSpecialization(const CXXMethodDecl *MD) { in isGenericLambdaCallOperatorSpecialization()
79 dyn_cast<CXXMethodDecl>(DC)); in isGenericLambdaCallOperatorSpecialization()
84 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
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 …]
H A DCXXInheritance.h232 CXXMethodDecl *Method = nullptr;
245 UniqueVirtualMethod(CXXMethodDecl *Method, unsigned Subobject, in UniqueVirtualMethod()
358 : public llvm::MapVector<const CXXMethodDecl *, OverridingMethods> {};
/src/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()
/src/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/Models/
H A DChromiumCheckModel.cpp19 bool isCheckLikeMethod(llvm::SmallDenseSet<const CXXMethodDecl *> &CheckDecls, in isCheckLikeMethod()
20 const CXXMethodDecl &D) { in isCheckLikeMethod()
45 for (const CXXMethodDecl *M : ParentClass->methods()) in isCheckLikeMethod()
59 if (const auto *M = dyn_cast<CXXMethodDecl>(Call->getDirectCallee())) { in transfer()
/src/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;
/src/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DUSRFindingAction.cpp71 if (const auto *MethodDecl = dyn_cast<CXXMethodDecl>(FoundDecl)) { in Find()
107 bool VisitCXXMethodDecl(const CXXMethodDecl *MethodDecl) { in VisitCXXMethodDecl()
179 void addUSRsOfOverridenFunctions(const CXXMethodDecl *MethodDecl) { in addUSRsOfOverridenFunctions()
186 void addUSRsOfInstantiatedMethods(const CXXMethodDecl *MethodDecl) { in addUSRsOfInstantiatedMethods()
200 bool checkIfOverriddenFunctionAscends(const CXXMethodDecl *MethodDecl) { in checkIfOverriddenFunctionAscends()
212 std::vector<const CXXMethodDecl *> OverriddenMethods;
213 std::vector<const CXXMethodDecl *> InstantiatedMethods;
/src/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DVirtualCallChecker.cpp79 const CXXMethodDecl *MD = in REGISTER_MAP_WITH_PROGRAMSTATE()
80 dyn_cast_or_null<CXXMethodDecl>(CE->getDirectCallee()); in REGISTER_MAP_WITH_PROGRAMSTATE()
104 const CXXMethodDecl *MD = dyn_cast_or_null<CXXMethodDecl>(Call.getDecl()); in checkPreCall()
168 const auto *MD = dyn_cast_or_null<CXXMethodDecl>(LCtx->getDecl()); in registerCtorDtorCallInState()
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()
/src/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 …]
/src/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)
/src/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,
/src/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()
/src/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DLoopWidening.cpp88 const CXXMethodDecl *CXXMD = dyn_cast<CXXMethodDecl>(STC->getDecl()); in getWidenedLoopState()
/src/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 …]

12345678