Home
last modified time | relevance | path

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

1234567

/freebsd-13.1/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()
38 inline bool isGenericLambdaCallOperatorSpecialization(const CXXMethodDecl *MD) { in isGenericLambdaCallOperatorSpecialization()
64 dyn_cast<CXXMethodDecl>(DC)); in isGenericLambdaCallOperatorSpecialization()
69 CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(DC); in isGenericLambdaCallOperatorOrStaticInvokerSpecialization()
H A DMangleNumberingContext.h23 class CXXMethodDecl; variable
37 virtual unsigned getManglingNumber(const CXXMethodDecl *CallOperator) = 0;
59 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
1948 class CXXMethodDecl : public FunctionDecl {
1994 CXXMethodDecl *CD = const_cast<CXXMethodDecl*>(this)->getCanonicalDecl(); in isVirtual()
2041 CXXMethodDecl *getMostRecentDecl() { in getMostRecentDecl()
2042 return cast<CXXMethodDecl>( in getMostRecentDecl()
2129 CXXMethodDecl *
2133 const CXXMethodDecl *
2136 return const_cast<CXXMethodDecl *>(this)
2144 const CXXMethodDecl *
2147 return const_cast<CXXMethodDecl *>(this)
[all …]
H A DCXXInheritance.h232 CXXMethodDecl *Method = nullptr;
245 UniqueVirtualMethod(CXXMethodDecl *Method, unsigned Subobject, in UniqueVirtualMethod()
358 : public llvm::MapVector<const CXXMethodDecl *, OverridingMethods> {};
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DVTableBuilder.cpp66 const CXXMethodDecl *Method;
1113 const CXXMethodDecl *MD = MI.first; in ComputeThisAdjustments()
1163 const CXXMethodDecl *MD; in ComputeThisAdjustments()
1334 const CXXMethodDecl *MD, in OverridesIndirectMethodInBases()
1415 static const CXXMethodDecl *
1561 [](const CXXMethodDecl *A, const CXXMethodDecl *B) { in AddMethods()
1683 const CXXMethodDecl *MD = I.first; in LayoutPrimaryAndSecondaryVTables()
2109 const CXXMethodDecl *MD = I.first; in dumpLayout()
2550 const CXXMethodDecl *MD = I.first; in LayoutVFTable()
2994 const CXXMethodDecl *OverriddenMD = in AddMethods()
[all …]
H A DDeclCXX.cpp1519 return cast<CXXMethodDecl>(CallOp); in getLambdaCallOperator()
1539 return cast<CXXMethodDecl>(ND); in getInvokerAsMethod()
2089 void CXXMethodDecl::anchor() {} in anchor()
2112 CXXMethodDecl *
2143 CXXMethodDecl *
2181 CXXMethodDecl *CXXMethodDecl::Create(ASTContext &C, CXXRecordDecl *RD, in Create()
2195 CXXMethodDecl *CXXMethodDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
2202 CXXMethodDecl *CXXMethodDecl::getDevirtualizedMethod(const Expr *Base, in getDevirtualizedMethod()
2406 void CXXMethodDecl::addOverriddenMethod(const CXXMethodDecl *MD) { in addOverriddenMethod()
2415 CXXMethodDecl::method_iterator CXXMethodDecl::begin_overridden_methods() const { in begin_overridden_methods()
[all …]
H A DMangle.cpp225 if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(FD)) in mangleName()
472 if (!(isa<CXXRecordDecl>(D) || isa<CXXMethodDecl>(D))) in getAllManglings()
482 auto hasDefaultCXXMethodCC = [](ASTContext &C, const CXXMethodDecl *MD) { in getAllManglings()
507 } else if (const auto *MD = dyn_cast_or_null<CXXMethodDecl>(ND)) { in getAllManglings()
565 std::string getMangledThunk(const CXXMethodDecl *MD, const ThunkInfo &T) { in getMangledThunk()
H A DCXXInheritance.cpp562 const CXXMethodDecl *CanonOM = OM->first->getCanonicalDecl(); in Collect()
573 CXXMethodDecl *CanonM = M->getCanonicalDecl(); in Collect()
575 llvm::iterator_range<CXXMethodDecl::method_iterator>; in Collect()
599 for (const CXXMethodDecl *OM : Stack.pop_back_val()) { in Collect()
600 const CXXMethodDecl *CanonOM = OM->getCanonicalDecl(); in Collect()
/freebsd-13.1/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()
181 void addUSRsOfOverridenFunctions(const CXXMethodDecl *MethodDecl) { in addUSRsOfOverridenFunctions()
188 void addUSRsOfInstantiatedMethods(const CXXMethodDecl *MethodDecl) { in addUSRsOfInstantiatedMethods()
202 bool checkIfOverriddenFunctionAscends(const CXXMethodDecl *MethodDecl) { in checkIfOverriddenFunctionAscends()
214 std::vector<const CXXMethodDecl *> OverriddenMethods;
215 std::vector<const CXXMethodDecl *> InstantiatedMethods;
/freebsd-13.1/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;
445 const auto MethodDecl = dyn_cast_or_null<CXXMethodDecl>(AFC->getDecl()); in checkPostCall()
493 bool MoveChecker::isMoveSafeMethod(const CXXMethodDecl *MethodDec) const { in isMoveSafeMethod()
509 bool MoveChecker::isStateResetMethod(const CXXMethodDecl *MethodDec) const { in isStateResetMethod()
533 auto *MethodDec = dyn_cast_or_null<CXXMethodDecl>(CtxDec); in isInMoveSafeContext()
631 const auto MethodDecl = dyn_cast_or_null<CXXMethodDecl>(IC->getDecl()); in checkPreCall()
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenTypes.h35 class CXXMethodDecl; variable
128 CanQualType DeriveThisType(const CXXRecordDecl *RD, const CXXMethodDecl *MD);
239 const CGFunctionInfo &arrangeCXXMethodDeclaration(const CXXMethodDecl *MD);
253 arrangeUnprototypedMustTailThunk(const CXXMethodDecl *MD);
258 const CXXMethodDecl *MD);
H A DCGVTables.cpp160 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()); in GenerateVarArgsThunk()
244 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()); in StartThunk()
295 assert(isa<CXXMethodDecl>(CurGD.getDecl()) && in EmitCallAndReturnForThunk()
297 const CXXMethodDecl *MD = cast<CXXMethodDecl>(CurGD.getDecl()); in EmitCallAndReturnForThunk()
495 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()); in maybeEmitThunk()
606 const CXXMethodDecl *MD = in EmitThunks()
607 cast<CXXMethodDecl>(GD.getDecl())->getCanonicalDecl(); in EmitThunks()
737 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()); in addVTableComponent()
777 if (cast<CXXMethodDecl>(GD.getDecl())->isPure()) { in addVTableComponent()
784 } else if (cast<CXXMethodDecl>(GD.getDecl())->isDeleted()) { 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()
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DPtrTypesSemantics.h16 class CXXMethodDecl; variable
54 llvm::Optional<bool> isGetterOfRefCounted(const clang::CXXMethodDecl *Method);
H A DPtrTypesSemantics.cpp28 for (const CXXMethodDecl *MD : R->methods()) { in hasPublicRefAndDeref()
138 Optional<bool> isGetterOfRefCounted(const CXXMethodDecl *M) { in isGetterOfRefCounted()
141 if (isa<CXXMethodDecl>(M)) { in isGetterOfRefCounted()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Basic/
H A DThunk.h23 class CXXMethodDecl; variable
168 const CXXMethodDecl *Method;
173 const CXXMethodDecl *Method = nullptr)
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DLoopWidening.cpp87 const CXXMethodDecl *CXXMD = dyn_cast<CXXMethodDecl>(STC->getDecl()); in getWidenedLoopState()
H A DCallEvent.cpp722 if (const auto *D = cast_or_null<CXXMethodDecl>(getDecl())) { in getExtraInvalidatedValues()
765 const auto *MD = cast<CXXMethodDecl>(D); in getRuntimeDefinition()
788 const CXXMethodDecl *Result = MD->getCorrespondingMethodInClass(RD, true); in getRuntimeDefinition()
833 const auto *MD = cast<CXXMethodDecl>(CalleeCtx->getDecl()); in getInitialStackFrameContents()
850 const CXXMethodDecl *StaticMD = cast<CXXMethodDecl>(getDecl()); in getInitialStackFrameContents()
908 auto *LambdaOperatorDecl = cast<CXXMethodDecl>(CalleeCtx->getDecl()); in getInitialStackFrameContents()
949 const auto *MD = cast<CXXMethodDecl>(CalleeCtx->getDecl()); in getInitialStackFrameContents()
1416 if (const auto *MD = dyn_cast<CXXMethodDecl>(DirectCallee)) in getSimpleCall()
1443 const auto *Ctor = cast<CXXMethodDecl>(CalleeCtx->getDecl()); in getCaller()
/freebsd-13.1/contrib/llvm-project/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()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/CodeGen/
H A DCodeGenABITypes.h47 class CXXMethodDecl; variable
83 const CXXMethodDecl *MD);
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaDeclCXX.cpp526 CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(New); in MergeCXXFunctionDecl()
1737 const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(NewFD); in CheckConstexprFunctionDefinition()
1766 const CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(NewFD); in CheckConstexprFunctionDefinition()
3038 CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(D); in CheckOverrideControl()
3101 CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(D); in DiagnoseAbsenceOfOverrideControl()
6254 CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(Member); in checkClassLevelDLLAttribute()
9749 if (CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(D)) { in operator ()()
9813 if (CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(ND)) in FindHiddenVirtualMethods()
14152 CXXMethodDecl *CopyAssignment = CXXMethodDecl::Create( in DeclareImplicitCopyAssignment()
14486 CXXMethodDecl *MoveAssignment = CXXMethodDecl::Create( in DeclareImplicitMoveAssignment()
[all …]
H A DSemaLambda.cpp359 CXXMethodDecl *Sema::startLambdaDefinition(CXXRecordDecl *Class, in startLambdaDefinition()
391 CXXMethodDecl *Method = CXXMethodDecl::Create( in startLambdaDefinition()
431 CXXRecordDecl *Class, CXXMethodDecl *Method, in handleLambdaNumbering()
486 CXXMethodDecl *CallOperator, in buildLambdaScope()
545 CXXMethodDecl *CallOperator, Scope *CurScope) { in addLambdaParameters()
982 CXXMethodDecl *Method = in ActOnStartOfLambdaDefinition()
1488 CXXMethodDecl *Invoke = CXXMethodDecl::Create( in addFunctionPointerConversion()
1536 CXXMethodDecl *CallOperator) { in addBlockPointerConversion()
1755 CXXMethodDecl *CallOperator; in BuildLambdaExpr()
1970 CXXMethodDecl *CallOperator in BuildBlockForLambdaConversion()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Sema/
H A DTemplate.h32 class CXXMethodDecl; variable
529 Decl *VisitCXXMethodDecl(CXXMethodDecl *D,
592 bool InitMethodInstantiation(CXXMethodDecl *New, CXXMethodDecl *Tmpl);

1234567