/netbsd-src/external/apache2/llvm/dist/clang/examples/CallSuperAttribute/ |
H A D | CallSuperAttrInfo.cpp | 38 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() 167 const auto *TheMethod = dyn_cast_or_null<CXXMethodDecl>(D); in diagAppertainsToDecl()
|
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/ |
H A D | ASTLambda.h | 27 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 D | VTableBuilder.h | 71 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 D | MangleNumberingContext.h | 23 class CXXMethodDecl; variable 37 virtual unsigned getManglingNumber(const CXXMethodDecl *CallOperator) = 0; 59 virtual unsigned getDeviceManglingNumber(const CXXMethodDecl *) { return 0; } in getDeviceManglingNumber() argument
|
H A D | DeclCXX.h | 65 class CXXMethodDecl; variable 626 using method_iterator = specific_decl_iterator<CXXMethodDecl>; 628 llvm::iterator_range<specific_decl_iterator<CXXMethodDecl>>; 1008 CXXMethodDecl *getLambdaCallOperator() const; 1021 CXXMethodDecl *getLambdaStaticInvoker() const; 1022 CXXMethodDecl *getLambdaStaticInvoker(CallingConv CC) const; 1670 void finishedDefaultedOrDeletedMember(CXXMethodDecl *MD); 1672 void setTrivialForCallFlags(CXXMethodDecl *MD); 1946 class CXXMethodDecl : public FunctionDecl { 1950 CXXMethodDecl(Kind DK, ASTContext &C, CXXRecordDecl *RD, [all …]
|
H A D | CXXInheritance.h | 232 CXXMethodDecl *Method = nullptr; 245 UniqueVirtualMethod(CXXMethodDecl *Method, unsigned Subobject, in UniqueVirtualMethod() 358 : public llvm::MapVector<const CXXMethodDecl *, OverridingMethods> {};
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/ |
H A D | VTableBuilder.cpp | 66 const CXXMethodDecl *Method; 101 typedef std::pair<const CXXMethodDecl *, CharUnits> MethodBaseOffsetPairTy; 140 OverriderInfo getOverrider(const CXXMethodDecl *MD, in getOverrider() 180 const CXXMethodDecl *MD = Overrider.first; in FinalOverriders() 271 const CXXMethodDecl *DerivedMD, in ComputeReturnAdjustmentBaseOffset() 272 const CXXMethodDecl *BaseMD) { in ComputeReturnAdjustmentBaseOffset() 444 typedef std::pair<const CXXMethodDecl *, CharUnits> MethodAndOffsetPairTy; 452 static bool MethodsCanShareVCallOffset(const CXXMethodDecl *LHS, 453 const CXXMethodDecl *RHS); 459 bool AddVCallOffset(const CXXMethodDecl *MD, CharUnits OffsetOffset); [all …]
|
H A D | DeclCXX.cpp | 713 if (const auto *Method = dyn_cast<CXXMethodDecl>(D)) { in addedMember() 842 if (const auto *Method = dyn_cast<CXXMethodDecl>(D)) { in addedMember() 1386 void CXXRecordDecl::finishedDefaultedOrDeletedMember(CXXMethodDecl *D) { in finishedDefaultedOrDeletedMember() 1443 void CXXRecordDecl::setTrivialForCallFlags(CXXMethodDecl *D) { in setTrivialForCallFlags() 1501 CXXMethodDecl *CXXRecordDecl::getLambdaCallOperator() const { in getLambdaCallOperator() 1508 return cast<CXXMethodDecl>(CallOpTmpl->getTemplatedDecl()); in getLambdaCallOperator() 1510 return cast<CXXMethodDecl>(CallOp); in getLambdaCallOperator() 1513 CXXMethodDecl* CXXRecordDecl::getLambdaStaticInvoker() const { in getLambdaStaticInvoker() 1514 CXXMethodDecl *CallOp = getLambdaCallOperator(); in getLambdaStaticInvoker() 1527 static CXXMethodDecl *getInvokerAsMethod(NamedDecl *ND) { in getInvokerAsMethod() [all …]
|
H A D | Mangle.cpp | 225 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 D | CXXInheritance.cpp | 562 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()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Refactoring/Rename/ |
H A D | USRFindingAction.cpp | 71 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;
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/ |
H A D | VirtualCallChecker.cpp | 79 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 D | MoveChecker.cpp | 221 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()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/ |
H A D | CGVTables.cpp | 160 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() 474 static bool shouldEmitVTableThunk(CodeGenModule &CGM, const CXXMethodDecl *MD, in shouldEmitVTableThunk() 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() [all …]
|
H A D | CodeGenTypes.h | 35 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 D | CGCXX.cpp | 217 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()
|
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Basic/ |
H A D | Thunk.h | 23 class CXXMethodDecl; variable 168 const CXXMethodDecl *Method; 173 const CXXMethodDecl *Method = nullptr)
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/WebKit/ |
H A D | PtrTypesSemantics.cpp | 28 for (const CXXMethodDecl *MD : R->methods()) { in hasPublicRefAndDeref() 138 Optional<bool> isGetterOfRefCounted(const CXXMethodDecl *M) { in isGetterOfRefCounted() 141 if (isa<CXXMethodDecl>(M)) { in isGetterOfRefCounted()
|
H A D | PtrTypesSemantics.h | 16 class CXXMethodDecl; variable 54 llvm::Optional<bool> isGetterOfRefCounted(const clang::CXXMethodDecl *Method);
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/ |
H A D | SemaDeclCXX.cpp | 161 const CXXMethodDecl *Method) { in CalledDecl() 528 CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(New); in MergeCXXFunctionDecl() 640 CXXSpecialMember NewSM = getSpecialMember(cast<CXXMethodDecl>(New)), in MergeCXXFunctionDecl() 641 OldSM = getSpecialMember(cast<CXXMethodDecl>(Old)); in MergeCXXFunctionDecl() 1739 const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(NewFD); in CheckConstexprFunctionDefinition() 1768 const CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(NewFD); in CheckConstexprFunctionDefinition() 1782 const CXXMethodDecl *WrittenVirtual = Method; in CheckConstexprFunctionDefinition() 3038 CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(D); in CheckOverrideControl() 3049 SmallVector<CXXMethodDecl *, 8> OverloadedMethods; in CheckOverrideControl() 3101 CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(D); in DiagnoseAbsenceOfOverrideControl() [all …]
|
H A D | SemaLambda.cpp | 359 CXXMethodDecl *Sema::startLambdaDefinition(CXXRecordDecl *Class, in startLambdaDefinition() 391 CXXMethodDecl *Method = CXXMethodDecl::Create( in startLambdaDefinition() 431 CXXRecordDecl *Class, CXXMethodDecl *Method, in handleLambdaNumbering() 482 CXXMethodDecl *CallOperator, in buildLambdaScope() 541 CXXMethodDecl *CallOperator, Scope *CurScope) { in addLambdaParameters() 978 CXXMethodDecl *Method = in ActOnStartOfLambdaDefinition() 1352 CXXMethodDecl *CallOperator, in addFunctionPointerConversion() 1484 CXXMethodDecl *Invoke = CXXMethodDecl::Create( in addFunctionPointerConversion() 1515 CXXMethodDecl *CallOperator) { in addFunctionPointerConversions() 1532 CXXMethodDecl *CallOperator) { in addBlockPointerConversion() [all …]
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/ |
H A D | LoopWidening.cpp | 87 const CXXMethodDecl *CXXMD = dyn_cast<CXXMethodDecl>(STC->getDecl()); in getWidenedLoopState()
|
H A D | CallEvent.cpp | 683 if (const auto *D = cast_or_null<CXXMethodDecl>(getDecl())) { in getExtraInvalidatedValues() 726 const auto *MD = cast<CXXMethodDecl>(D); in getRuntimeDefinition() 749 const CXXMethodDecl *Result = MD->getCorrespondingMethodInClass(RD, true); in getRuntimeDefinition() 794 const auto *MD = cast<CXXMethodDecl>(CalleeCtx->getDecl()); in getInitialStackFrameContents() 811 const CXXMethodDecl *StaticMD = cast<CXXMethodDecl>(getDecl()); in getInitialStackFrameContents() 869 auto *LambdaOperatorDecl = cast<CXXMethodDecl>(CalleeCtx->getDecl()); in getInitialStackFrameContents() 910 const auto *MD = cast<CXXMethodDecl>(CalleeCtx->getDecl()); in getInitialStackFrameContents() 1377 if (const auto *MD = dyn_cast<CXXMethodDecl>(DirectCallee)) in getSimpleCall() 1404 const auto *Ctor = cast<CXXMethodDecl>(CalleeCtx->getDecl()); in getCaller()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Frontend/ |
H A D | InterfaceStubFunctionsConsumer.cpp | 58 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()
|
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Sema/ |
H A D | Template.h | 32 class CXXMethodDecl; variable 529 Decl *VisitCXXMethodDecl(CXXMethodDecl *D, 590 bool InitMethodInstantiation(CXXMethodDecl *New, CXXMethodDecl *Tmpl);
|