/freebsd-11-stable/contrib/llvm-project/clang/include/clang/AST/ |
H A D | NonTrivialTypeVisitor.h | 21 template <class Derived, class RetTy = void> struct DestructedTypeVisitor { 46 Derived &asDerived() { return static_cast<Derived &>(*this); } 49 template <class Derived, class RetTy = void> 74 Derived &asDerived() { return static_cast<Derived &>(*this); } 77 template <class Derived, bool IsMove, class RetTy = void> 107 Derived &asDerived() { return static_cast<Derived &>(*this); }
|
H A D | RecursiveASTVisitor.h | 151 template <typename Derived> class RecursiveASTVisitor { 162 Derived &getDerived() { return *static_cast<Derived *>(this); } 342 decltype(&Derived::Traverse##NAME)>::value \ 346 decltype(&Derived::Traverse##NAME)>::value, \ 347 Derived &, RecursiveASTVisitor &>::type>(*this) \ 549 template <typename Derived> 550 bool RecursiveASTVisitor<Derived>::dataTraverseNode(Stmt *S, 604 template <typename Derived> 605 bool RecursiveASTVisitor<Derived> [all...] |
H A D | LexicallyOrderedRecursiveASTVisitor.h | 58 template <typename Derived> 60 : public RecursiveASTVisitor<Derived> { 61 using BaseType = RecursiveASTVisitor<Derived>;
|
H A D | ASTNodeTraverser.h | 32 The `Derived::doGetNodeDelegate()` method is required to be an accessible member 54 template <typename Derived, typename NodeDelegateType> 56 : public ConstDeclVisitor<Derived>, 57 public ConstStmtVisitor<Derived>, 58 public comments::ConstCommentVisitor<Derived, void, 60 public TypeVisitor<Derived>, 61 public ConstAttrVisitor<Derived>, 62 public ConstTemplateArgumentVisitor<Derived> { 74 Derived &getDerived() { return *static_cast<Derived *>(thi [all...] |
H A D | Mangle.h | 191 virtual void mangleCXXVFTable(const CXXRecordDecl *Derived, 198 virtual void mangleCXXVBTable(const CXXRecordDecl *Derived, 227 const CXXRecordDecl *Derived, uint32_t NVOffset, int32_t VBPtrOffset, 230 virtual void mangleCXXRTTIBaseClassArray(const CXXRecordDecl *Derived, 233 mangleCXXRTTIClassHierarchyDescriptor(const CXXRecordDecl *Derived, 237 mangleCXXRTTICompleteObjectLocator(const CXXRecordDecl *Derived,
|
H A D | TypeLoc.h | 337 /// \tparam Derived the class deriving from this one 360 template <class Base, class Derived, class TypeClass, class LocalData> 364 const Derived *asDerived() const { 365 return static_cast<const Derived*>(this); 370 Derived::classofType(TL.getTypePtr()); 391 void copyLocal(Derived other) { 485 template <class Base, class Derived, class TypeClass> 495 Derived::classofType(TL.getTypePtr()); 498 return Derived::classofType(TL.getTypePtr()); 1196 template <class Derived, clas [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/lib/Sema/ |
H A D | TreeTransform.h | 98 template<typename Derived> 104 Derived &Self; 108 ForgetPartiallySubstitutedPackRAII(Derived &Self) : Self(Self) { 130 Derived &getDerived() { return static_cast<Derived&>(*this); } 133 const Derived &getDerived() const { 134 return static_cast<const Derived&>(*this); 3461 template <typename Derived> 3462 StmtResult TreeTransform<Derived>::TransformStmt(Stmt *S, StmtDiscardKind SDK) { 3497 template<typename Derived> [all...] |
H A D | SemaAccess.cpp | 278 static AccessResult IsDerivedFromInclusive(const CXXRecordDecl *Derived, argument 280 assert(Derived->getCanonicalDecl() == Derived); 283 if (Derived == Target) return AR_accessible; 285 bool CheckDependent = Derived->isDependentContext(); 286 if (CheckDependent && MightInstantiateTo(Derived, Target)) 293 if (Derived->isDependentContext() && !Derived->hasDefinition() && 294 !Derived->isLambda()) 297 for (const auto &I : Derived 931 const CXXRecordDecl *Derived = Target.getNamingClass(); local 1826 CheckBaseClassAccess(SourceLocation AccessLoc, QualType Base, QualType Derived, const CXXBasePath &Path, unsigned DiagID, bool ForceCheck, bool ForceUnprivileged) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/ubsan/ |
H A D | ubsan_type_hash_itanium.cpp | 114 /// \brief Determine whether \p Derived has a \p Base base class subobject at 116 static bool isDerivedFromAtOffset(const abi::__class_type_info *Derived, argument 119 if (Derived->__type_name == Base->__type_name || 120 __ubsan::checkTypeInfoEquality(Derived, Base)) 124 dynamic_cast<const abi::__si_class_type_info*>(Derived)) 128 dynamic_cast<const abi::__vmi_class_type_info*>(Derived); 153 /// \brief Find the derived-most dynamic base class of \p Derived at offset 156 const abi::__class_type_info *Derived, sptr Offset) { 158 return Derived; 161 dynamic_cast<const abi::__si_class_type_info*>(Derived)) 155 findBaseAtOffset( const abi::__class_type_info *Derived, sptr Offset) argument 230 abi::__class_type_info *Derived = local [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | PointerUnion.h | 97 template <typename Derived, typename T> struct AssignableFrom { 98 Derived &operator=(T t) { 99 return static_cast<Derived &>(*this) = Derived(t); 103 template <typename Derived, typename ValTy, int I, typename ...Types> 106 template <typename Derived, typename ValTy, int I> 107 class PointerUnionMembers<Derived, ValTy, I> { 113 friend struct PointerLikeTypeTraits<Derived>; 116 template <typename Derived, typename ValTy, int I, typename Type, 118 class PointerUnionMembers<Derived, ValT [all...] |
H A D | IntrusiveRefCntPtr.h | 70 template <class Derived> class RefCountedBase { 82 delete static_cast<const Derived *>(this); 87 template <class Derived> class ThreadSafeRefCountedBase { 100 delete static_cast<const Derived *>(this);
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/ |
H A D | ASTTypeTraits.cpp | 51 bool ASTNodeKind::isBaseOf(NodeKindId Base, NodeKindId Derived, argument 53 if (Base == NKI_None || Derived == NKI_None) return false; 55 while (Derived != Base && Derived != NKI_None) { 56 Derived = AllKindInfo[Derived].ParentId; 61 return Derived == Base;
|
H A D | MicrosoftMangle.cpp | 147 void mangleCXXVFTable(const CXXRecordDecl *Derived, 150 void mangleCXXVBTable(const CXXRecordDecl *Derived, 167 void mangleCXXRTTIBaseClassDescriptor(const CXXRecordDecl *Derived, 171 void mangleCXXRTTIBaseClassArray(const CXXRecordDecl *Derived, 173 void mangleCXXRTTIClassHierarchyDescriptor(const CXXRecordDecl *Derived, 176 mangleCXXRTTICompleteObjectLocator(const CXXRecordDecl *Derived, 3104 const CXXRecordDecl *Derived, ArrayRef<const CXXRecordDecl *> BasePath, 3112 if (Derived->hasAttr<DLLImportAttr>()) 3116 Mangler.mangleName(Derived); 3124 const CXXRecordDecl *Derived, ArrayRe 3103 mangleCXXVFTable( const CXXRecordDecl *Derived, ArrayRef<const CXXRecordDecl *> BasePath, raw_ostream &Out) argument 3123 mangleCXXVBTable( const CXXRecordDecl *Derived, ArrayRef<const CXXRecordDecl *> BasePath, raw_ostream &Out) argument 3237 mangleCXXRTTIBaseClassDescriptor( const CXXRecordDecl *Derived, uint32_t NVOffset, int32_t VBPtrOffset, uint32_t VBTableOffset, uint32_t Flags, raw_ostream &Out) argument 3251 mangleCXXRTTIBaseClassArray( const CXXRecordDecl *Derived, raw_ostream &Out) argument 3260 mangleCXXRTTIClassHierarchyDescriptor( const CXXRecordDecl *Derived, raw_ostream &Out) argument 3269 mangleCXXRTTICompleteObjectLocator( const CXXRecordDecl *Derived, ArrayRef<const CXXRecordDecl *> BasePath, raw_ostream &Out) argument [all...] |
H A D | RecordLayoutBuilder.cpp | 53 const BaseSubobjectInfo *Derived; member in struct:__anon265::BaseSubobjectInfo 294 if (Info == PrimaryVirtualBaseInfo->Derived) { 342 if (Info == PrimaryVirtualBaseInfo->Derived) 728 BaseSubobjectInfo *Derived); 886 const CXXRecordDecl *RD, bool IsVirtual, BaseSubobjectInfo *Derived) { 906 Info->Derived = nullptr; 924 if (PrimaryVirtualBaseInfo->Derived) { 932 PrimaryVirtualBaseInfo->Derived = Info; 956 PrimaryVirtualBaseInfo->Derived = Info; 1017 PrimaryBaseInfo->Derived 885 ComputeBaseSubobjectInfo( const CXXRecordDecl *RD, bool IsVirtual, BaseSubobjectInfo *Derived) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | CheckObjCInstMethSignature.cpp | 28 static bool AreTypesCompatible(QualType Derived, QualType Ancestor, argument 33 if (Derived->isAnyPointerType() && Ancestor->isAnyPointerType()) 36 return C.typesAreCompatible(Derived, Ancestor);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86IndirectThunks.cpp | 59 template <typename Derived> class ThunkInserter { 60 Derived &getDerived() { return *static_cast<Derived *>(this); } 282 template <typename Derived> 283 void ThunkInserter<Derived>::createThunkFunction(MachineModuleInfo &MMI, 321 template <typename Derived> 322 bool ThunkInserter<Derived>::run(MachineModuleInfo &MMI, MachineFunction &MF) {
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Demangle/ |
H A D | ItaniumDemangle.h | 2290 template <typename Derived, typename Alloc> struct AbstractManglingParser { 2350 Derived &getDerived() { return static_cast<Derived &>(*this); } 2511 template <typename Derived, typename Alloc> 2512 Node *AbstractManglingParser<Derived, Alloc>::parseName(NameState *State) { 2553 template <typename Derived, typename Alloc> 2554 Node *AbstractManglingParser<Derived, Alloc>::parseLocalName(NameState *State) { 2589 template <typename Derived, typename Alloc> 2591 AbstractManglingParser<Derived, Alloc>::parseUnscopedName(NameState *State) { 2606 template <typename Derived, typenam 2279 assert(Index < size() && �); return *(begin() + Index); } void clear() { Last = First; } ~PODSmallVector() { if (!isInline()) std::free(First); } }; template <typename Derived, typename Alloc> struct AbstractManglingParser { const char *First; const char *Last; PODSmallVector<Node *, 32> Names; PODSmallVector<Node *, 32> Subs; using TemplateParamList = PODSmallVector<Node *, 8>; class ScopedTemplateParamList { AbstractManglingParser *Parser; size_t OldNumTemplateParamLists; TemplateParamList Params; public: ScopedTemplateParamList(AbstractManglingParser *Parser) : Parser(Parser), OldNumTemplateParamLists(Parser->TemplateParams.size()) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | CrashRecoveryContext.h | 116 /// Derived classes override method recoverResources, which makes actual work on 145 /// \tparam Derived Class that uses this class as a base. 153 template<typename Derived, typename T> 165 static Derived *create(T *x) { 168 return new Derived(context, x);
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | Store.cpp | 248 SVal StoreManager::evalDerivedToBase(SVal Derived, const CastExpr *Cast) { argument 251 if (!regionMatchesCXXRecordType(Derived, Cast->getSubExpr()->getType())) 255 SVal Result = Derived; 264 SVal StoreManager::evalDerivedToBase(SVal Derived, const CXXBasePath &Path) { argument 266 SVal Result = Derived; 273 SVal StoreManager::evalDerivedToBase(SVal Derived, QualType BaseType, argument 275 const MemRegion *DerivedReg = Derived.getAsRegion(); 277 return Derived; 381 // Derived{TargetClass, Element{SourceClass, SR}}?
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMConstantPoolValue.h | 78 template <typename Derived> 88 if (Derived *APC = dyn_cast<Derived>(CPV)) 89 if (cast<Derived>(this)->equals(APC))
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGNonTrivialStruct.cpp | 36 template <class Derived> struct StructVisitor { 71 Derived &asDerived() { return static_cast<Derived &>(*this); } 77 template <class Derived, bool IsMove> 78 struct CopyStructVisitor : StructVisitor<Derived>, 79 CopiedTypeVisitor<Derived, IsMove> { 80 using StructVisitor<Derived>::asDerived; 81 using Super = CopiedTypeVisitor<Derived, IsMove>; 83 CopyStructVisitor(ASTContext &Ctx) : StructVisitor<Derived>(Ctx) {} 150 template <class Derived> struc [all...] |
H A D | CGCXXABI.cpp | 262 const CXXRecordDecl *Derived = Path[I]; local 264 std::swap(Base, Derived); 266 getContext().getASTRecordLayout(Derived).getBaseClassOffset(Base);
|
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | LLVM.h | 46 template <class Derived> class RefCountedBase;
|
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A D | Store.h | 165 SVal evalDerivedToBase(SVal Derived, const CastExpr *Cast); 168 SVal evalDerivedToBase(SVal Derived, const CXXBasePath &CastPath); 171 SVal evalDerivedToBase(SVal Derived, QualType DerivedPtrType,
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/DebugInfo/ |
H A D | DIContext.h | 285 template <typename Derived, typename Base = LoadedObjectInfo> 296 return std::make_unique<Derived>(static_cast<const Derived &>(*this));
|