Home
last modified time | relevance | path

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

1234567

/openbsd-src/gnu/llvm/clang/examples/CallSuperAttribute/
H A DCallSuperAttrInfo.cpp38 llvm::SmallPtrSet<const CXXMethodDecl *, 16> MarkedMethods;
39 bool isMarkedAsCallSuper(const CXXMethodDecl *D) { in isMarkedAsCallSuper()
48 llvm::SmallPtrSet<const CXXMethodDecl *, 16> &MustCalledMethods) in MethodUsageVisitor() argument
51 const CXXMethodDecl *Callee = nullptr; in VisitCallExpr()
67 llvm::SmallPtrSet<const CXXMethodDecl *, 16> &MustCalledMethods;
80 bool VisitCXXMethodDecl(CXXMethodDecl *MethodDecl) { in VisitCXXMethodDecl()
83 llvm::SmallPtrSet<const CXXMethodDecl *, 16> OverriddenMarkedMethods; in VisitCXXMethodDecl()
129 const CXXMethodDecl *MethodDecl) { in lateDiagAppertainsToDecl()
169 const auto *TheMethod = dyn_cast_or_null<CXXMethodDecl>(D); in diagAppertainsToDecl()
/openbsd-src/gnu/llvm/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()
38 inline bool isGenericLambdaCallOperatorSpecialization(const CXXMethodDecl *MD) { in isGenericLambdaCallOperatorSpecialization()
64 dyn_cast<CXXMethodDecl>(DC)); in isGenericLambdaCallOperatorSpecialization()
69 const auto *MD = dyn_cast<CXXMethodDecl>(DC); in isGenericLambdaCallOperatorOrStaticInvokerSpecialization()
H A DMangleNumberingContext.h23 class CXXMethodDecl; variable
35 virtual unsigned getManglingNumber(const CXXMethodDecl *CallOperator) = 0;
57 virtual unsigned getDeviceManglingNumber(const CXXMethodDecl *) { return 0; } in getDeviceManglingNumber() argument
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);
H A DDeclCXX.h65 class CXXMethodDecl; variable
640 using method_iterator = specific_decl_iterator<CXXMethodDecl>;
642 llvm::iterator_range<specific_decl_iterator<CXXMethodDecl>>;
1022 CXXMethodDecl *getLambdaCallOperator() const;
1035 CXXMethodDecl *getLambdaStaticInvoker() const;
1036 CXXMethodDecl *getLambdaStaticInvoker(CallingConv CC) const;
1450 void addedEligibleSpecialMemberFunction(const CXXMethodDecl *MD, unsigned SMKind);
1708 void finishedDefaultedOrDeletedMember(CXXMethodDecl *MD);
1710 void setTrivialForCallFlags(CXXMethodDecl *MD);
1995 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> {};
/openbsd-src/gnu/llvm/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.cpp718 if (const auto *Method = dyn_cast<CXXMethodDecl>(D)) { in addedMember()
833 if (const auto *Method = dyn_cast<CXXMethodDecl>(D)) { in addedMember()
1379 void CXXRecordDecl::addedEligibleSpecialMemberFunction(const CXXMethodDecl *MD, in addedEligibleSpecialMemberFunction()
1426 void CXXRecordDecl::finishedDefaultedOrDeletedMember(CXXMethodDecl *D) { in finishedDefaultedOrDeletedMember()
1494 void CXXRecordDecl::setTrivialForCallFlags(CXXMethodDecl *D) { in setTrivialForCallFlags()
1552 CXXMethodDecl *CXXRecordDecl::getLambdaCallOperator() const { in getLambdaCallOperator()
1559 return cast<CXXMethodDecl>(CallOpTmpl->getTemplatedDecl()); in getLambdaCallOperator()
1561 return cast<CXXMethodDecl>(CallOp); in getLambdaCallOperator()
1564 CXXMethodDecl* CXXRecordDecl::getLambdaStaticInvoker() const { in getLambdaStaticInvoker()
1565 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.cpp223 if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(FD)) in mangleName()
476 if (!(isa<CXXRecordDecl>(D) || isa<CXXMethodDecl>(D))) in getAllManglings()
486 auto hasDefaultCXXMethodCC = [](ASTContext &C, const CXXMethodDecl *MD) { in getAllManglings()
511 } else if (const auto *MD = dyn_cast_or_null<CXXMethodDecl>(ND)) { in getAllManglings()
569 std::string getMangledThunk(const CXXMethodDecl *MD, const ThunkInfo &T) { in getMangledThunk()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/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;
/openbsd-src/gnu/llvm/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.cpp220 bool isStateResetMethod(const CXXMethodDecl *MethodDec) const;
221 bool isMoveSafeMethod(const CXXMethodDecl *MethodDec) const;
444 const auto MethodDecl = dyn_cast_or_null<CXXMethodDecl>(AFC->getDecl()); in checkPostCall()
492 bool MoveChecker::isMoveSafeMethod(const CXXMethodDecl *MethodDec) const { in isMoveSafeMethod()
508 bool MoveChecker::isStateResetMethod(const CXXMethodDecl *MethodDec) const { in isStateResetMethod()
532 auto *MethodDec = dyn_cast_or_null<CXXMethodDecl>(CtxDec); in isInMoveSafeContext()
626 const auto MethodDecl = dyn_cast_or_null<CXXMethodDecl>(IC->getDecl()); in checkPreCall()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCodeGenTypes.h34 class CXXMethodDecl; variable
125 CanQualType DeriveThisType(const CXXRecordDecl *RD, const CXXMethodDecl *MD);
236 const CGFunctionInfo &arrangeCXXMethodDeclaration(const CXXMethodDecl *MD);
250 arrangeUnprototypedMustTailThunk(const CXXMethodDecl *MD);
255 const CXXMethodDecl *MD);
H A DCGVTables.cpp162 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()); in GenerateVarArgsThunk()
248 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()); in StartThunk()
299 assert(isa<CXXMethodDecl>(CurGD.getDecl()) && in EmitCallAndReturnForThunk()
301 const CXXMethodDecl *MD = cast<CXXMethodDecl>(CurGD.getDecl()); in EmitCallAndReturnForThunk()
476 static bool shouldEmitVTableThunk(CodeGenModule &CGM, const CXXMethodDecl *MD, in shouldEmitVTableThunk()
497 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()); in maybeEmitThunk()
608 const CXXMethodDecl *MD = in EmitThunks()
609 cast<CXXMethodDecl>(GD.getDecl())->getCanonicalDecl(); in EmitThunks()
753 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()); in addVTableComponent()
793 if (cast<CXXMethodDecl>(GD.getDecl())->isPure()) { in addVTableComponent()
[all …]
H A DCGCXX.cpp217 SetLLVMFunctionAttributesForDefinition(cast<CXXMethodDecl>(GD.getDecl()), Fn); in codegenCXXStructor()
224 auto *MD = cast<CXXMethodDecl>(GD.getDecl()); in getAddrAndTypeOfCXXStructor()
276 CodeGenFunction::BuildAppleKextVirtualCall(const CXXMethodDecl *MD, in BuildAppleKextVirtualCall()
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DPtrTypesSemantics.h17 class CXXMethodDecl; variable
54 std::optional<bool> isGetterOfRefCounted(const clang::CXXMethodDecl* Method);
H A DPtrTypesSemantics.cpp27 for (const CXXMethodDecl *MD : R->methods()) { in hasPublicRefAndDeref()
140 std::optional<bool> isGetterOfRefCounted(const CXXMethodDecl* M) in isGetterOfRefCounted()
144 if (isa<CXXMethodDecl>(M)) { in isGetterOfRefCounted()
/openbsd-src/gnu/llvm/clang/include/clang/Basic/
H A DThunk.h23 class CXXMethodDecl; variable
168 const CXXMethodDecl *Method;
173 const CXXMethodDecl *Method = nullptr)
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Core/
H A DLoopWidening.cpp86 const CXXMethodDecl *CXXMD = dyn_cast<CXXMethodDecl>(STC->getDecl()); in getWidenedLoopState()
H A DCallEvent.cpp687 if (const auto *D = cast_or_null<CXXMethodDecl>(getDecl())) { in getExtraInvalidatedValues()
730 const auto *MD = cast<CXXMethodDecl>(D); in getRuntimeDefinition()
753 const CXXMethodDecl *Result = MD->getCorrespondingMethodInClass(RD, true); in getRuntimeDefinition()
798 const auto *MD = cast<CXXMethodDecl>(CalleeCtx->getDecl()); in getInitialStackFrameContents()
815 const CXXMethodDecl *StaticMD = cast<CXXMethodDecl>(getDecl()); in getInitialStackFrameContents()
874 auto *LambdaOperatorDecl = cast<CXXMethodDecl>(CalleeCtx->getDecl()); in getInitialStackFrameContents()
915 const auto *MD = cast<CXXMethodDecl>(CalleeCtx->getDecl()); in getInitialStackFrameContents()
1382 if (const auto *MD = dyn_cast<CXXMethodDecl>(DirectCallee)) in getSimpleCall()
1409 const auto *Ctor = cast<CXXMethodDecl>(CalleeCtx->getDecl()); in getCaller()
/openbsd-src/gnu/llvm/clang/include/clang/CodeGen/
H A DCodeGenABITypes.h44 class CXXMethodDecl; variable
75 const CXXMethodDecl *MD);
/openbsd-src/gnu/llvm/clang/lib/Frontend/
H A DInterfaceStubFunctionsConsumer.cpp58 if (isa<BlockDecl>(Parent) || isa<CXXMethodDecl>(Parent)) in WriteNamedDecl()
68 if (FD->isInlined() && !isa<CXXMethodDecl>(FD) && in WriteNamedDecl()
71 if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(FD)) { in WriteNamedDecl()
/openbsd-src/gnu/llvm/lldb/tools/lldb-instr/
H A DInstrument.cpp30 bool VisitCXXMethodDecl(CXXMethodDecl *Decl) { in VisitCXXMethodDecl()
85 bool ShouldSkip(CXXMethodDecl *Decl) { in ShouldSkip()

1234567