Home
last modified time | relevance | path

Searched refs:Derived (Results 1 – 25 of 107) sorted by relevance

12345

/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DRecursiveASTVisitor.h156 template <typename Derived> class RecursiveASTVisitor {
167 Derived &getDerived() { return *static_cast<Derived *>(this); }
349 decltype(&Derived::Traverse##NAME)>::value \
353 decltype(&Derived::Traverse##NAME)>::value, \
354 Derived &, RecursiveASTVisitor &>>(*this) \
519 template <typename Derived>
520 bool RecursiveASTVisitor<Derived>::TraverseTypeConstraint(
538 template <typename Derived>
539 bool RecursiveASTVisitor<Derived>::TraverseConceptRequirement(
556 template <typename Derived>
[all …]
H A DNonTrivialTypeVisitor.h21 template <class Derived, class RetTy = void> struct DestructedTypeVisitor {
46 Derived &asDerived() { return static_cast<Derived &>(*this); } in asDerived()
49 template <class Derived, class RetTy = void>
74 Derived &asDerived() { return static_cast<Derived &>(*this); } in asDerived()
77 template <class Derived, bool IsMove, class RetTy = void>
109 Derived &asDerived() { return static_cast<Derived &>(*this); } in asDerived()
H A DASTNodeTraverser.h64 template <typename Derived, typename NodeDelegateType>
66 : public ConstDeclVisitor<Derived>,
67 public ConstStmtVisitor<Derived>,
68 public comments::ConstCommentVisitor<Derived, void,
70 public TypeVisitor<Derived>,
71 public TypeLocVisitor<Derived>,
72 public ConstAttrVisitor<Derived>,
73 public ConstTemplateArgumentVisitor<Derived> {
92 Derived &getDerived() { return *static_cast<Derived *>(this); } in getDerived()
112 ConstDeclVisitor<Derived>::Visit(D);
[all …]
H A DLexicallyOrderedRecursiveASTVisitor.h58 template <typename Derived>
60 : public RecursiveASTVisitor<Derived> {
61 using BaseType = RecursiveASTVisitor<Derived>;
H A DMangle.h242 virtual void mangleCXXVFTable(const CXXRecordDecl *Derived,
249 virtual void mangleCXXVBTable(const CXXRecordDecl *Derived,
278 const CXXRecordDecl *Derived, uint32_t NVOffset, int32_t VBPtrOffset,
281 virtual void mangleCXXRTTIBaseClassArray(const CXXRecordDecl *Derived,
284 mangleCXXRTTIClassHierarchyDescriptor(const CXXRecordDecl *Derived,
288 mangleCXXRTTICompleteObjectLocator(const CXXRecordDecl *Derived,
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dmem_map_base.h20 template <class Derived> class MemMapBase {
28 return invokeImpl(&Derived::mapImpl, Addr, Size, Name, Flags);
36 invokeImpl(&Derived::unmapImpl, Addr, Size); in unmap()
47 return invokeImpl(&Derived::remapImpl, Addr, Size, Name, Flags);
55 return invokeImpl(&Derived::setMemoryPermissionImpl, Addr, Size, Flags); in setMemoryPermission()
64 invokeImpl(&Derived::releasePagesToOSImpl, From, Size); in releasePagesToOS()
71 invokeImpl(&Derived::releaseAndZeroPagesToOSImpl, From, Size); in releaseAndZeroPagesToOS()
74 uptr getBase() { return invokeImpl(&Derived::getBaseImpl); } in getBase()
75 uptr getCapacity() { return invokeImpl(&Derived::getCapacityImpl); } in getCapacity()
81 R invokeImpl(R (Derived::*MemFn)(Args...), Args... args) { in invokeImpl()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DTreeTransform.h109 template<typename Derived>
115 Derived &Self;
122 ForgetPartiallySubstitutedPackRAII(Derived &Self) in ForgetPartiallySubstitutedPackRAII()
145 Derived &getDerived() { return static_cast<Derived&>(*this); } in getDerived()
148 const Derived &getDerived() const { in getDerived()
149 return static_cast<const Derived&>(*this); in getDerived()
4285 template <typename Derived>
4286 StmtResult TreeTransform<Derived>::TransformStmt(Stmt *S, StmtDiscardKind SDK) { in TransformStmt()
4321 template<typename Derived>
4322 OMPClause *TreeTransform<Derived>::TransformOMPClause(OMPClause *S) { in TransformOMPClause()
[all …]
H A DUsedDeclVisitor.h20 template <class Derived>
21 class UsedDeclVisitor : public EvaluatedExprVisitor<Derived> {
26 typedef EvaluatedExprVisitor<Derived> Inherited;
30 Derived &asImpl() { return *static_cast<Derived *>(this); } in asImpl()
/freebsd/contrib/llvm-project/clang/utils/TableGen/
H A DClangSyntaxEmitter.cpp48 for (const Record *Derived : Records.getAllDerivedDefinitions("NodeType")) in Hierarchy() local
49 if (const Record *Base = Derived->getValueAsOptionalDef("base")) in Hierarchy()
50 link(Derived, Base); in Hierarchy()
52 sort(N.Derived, [](const NodeType *L, const NodeType *R) { in Hierarchy()
57 N.Rec->isSubClassOf("External") || N.Derived.empty()); in Hierarchy()
58 assert(!N.Rec->isSubClassOf("Alternatives") || !N.Derived.empty()); in Hierarchy()
65 std::vector<const NodeType *> Derived; member
81 for (const NodeType *D : Start->Derived) in visit()
94 void link(const Record *Derived, const Record *Base) { in link() argument
95 auto &CN = get(Derived->getName()), &PN = get(Base->getName()); in link()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/ExtractAPI/
H A DExtractAPIVisitor.h41 template <typename Derived>
42 class ExtractAPIVisitorBase : public RecursiveASTVisitor<Derived> {
43 using Base = RecursiveASTVisitor<Derived>;
170 Derived &getDerivedExtractAPIVisitor() { in getDerivedExtractAPIVisitor()
171 return *static_cast<Derived *>(this); in getDerivedExtractAPIVisitor()
276 template <typename Derived>
277 bool ExtractAPIVisitorBase<Derived>::VisitVarDecl(const VarDecl *Decl) { in VisitVarDecl()
338 template <typename Derived>
339 bool ExtractAPIVisitorBase<Derived>::VisitFunctionDecl( in VisitFunctionDecl()
407 template <typename Derived>
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Passes/
H A DCodeGenPassBuilder.h615 template <typename Derived, typename TargetMachineT>
616 Error CodeGenPassBuilder<Derived, TargetMachineT>::buildPipeline( in buildPipeline()
665 template <typename Derived, typename TargetMachineT>
666 void CodeGenPassBuilder<Derived, TargetMachineT>::setStartStopPasses( in setStartStopPasses()
708 template <typename Derived, typename TargetMachineT>
709 Error CodeGenPassBuilder<Derived, TargetMachineT>::verifyStartStop( in verifyStartStop()
725 template <typename Derived, typename TargetMachineT>
726 void CodeGenPassBuilder<Derived, TargetMachineT>::addISelPasses( in addISelPasses()
744 template <typename Derived, typename TargetMachineT>
745 void CodeGenPassBuilder<Derived, TargetMachineT>::addIRPasses( in addIRPasses()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/ubsan/
H A Dubsan_type_hash_itanium.cpp129 static bool isDerivedFromAtOffset(const abi::__class_type_info *Derived, in isDerivedFromAtOffset() argument
132 if (Derived->name() == Base->name() || in isDerivedFromAtOffset()
133 __ubsan::checkTypeInfoEquality(Derived, Base)) in isDerivedFromAtOffset()
137 dynamic_cast<const abi::__si_class_type_info*>(Derived)) in isDerivedFromAtOffset()
141 dynamic_cast<const abi::__vmi_class_type_info*>(Derived); in isDerivedFromAtOffset()
169 const abi::__class_type_info *Derived, sptr Offset) { in findBaseAtOffset() argument
171 return Derived; in findBaseAtOffset()
174 dynamic_cast<const abi::__si_class_type_info*>(Derived)) in findBaseAtOffset()
178 dynamic_cast<const abi::__vmi_class_type_info*>(Derived); in findBaseAtOffset()
244 abi::__class_type_info *Derived = in checkDynamicType() local
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DASTTypeTraits.cpp69 bool ASTNodeKind::isBaseOf(NodeKindId Base, NodeKindId Derived) { in isBaseOf() argument
70 if (Base == NKI_None || Derived == NKI_None) in isBaseOf()
72 while (Derived != Base && Derived != NKI_None) { in isBaseOf()
73 Derived = AllKindInfo[Derived].ParentId; in isBaseOf()
75 return Derived == Base; in isBaseOf()
78 bool ASTNodeKind::isBaseOf(NodeKindId Base, NodeKindId Derived, in isBaseOf() argument
80 if (Base == NKI_None || Derived == NKI_None) return false; in isBaseOf()
82 while (Derived != Base && Derived != NKI_None) { in isBaseOf()
83 Derived = AllKindInfo[Derived].ParentId; in isBaseOf()
88 return Derived == Base; in isBaseOf()
/freebsd/contrib/llvm-project/clang/include/clang/ExtractAPI/Serialization/
H A DAPISetVisitor.h76 template <typename Derived> class APISetVisitor {
135 Derived *getDerived() { return static_cast<Derived *>(this); }; in getDerived()
138 template <typename Derived>
139 bool APISetVisitor<Derived>::traverseRecordContext( in traverseRecordContext()
150 template <typename Derived>
151 bool APISetVisitor<Derived>::traverseAPIRecord(const APIRecord *Record) { in traverseAPIRecord()
/freebsd/contrib/llvm-project/libc/src/__support/CPP/type_traits/
H A Dis_base_of.h35 template <typename Base, typename Derived>
39 cpp::is_class_v<Derived> &&decltype(detail::is_base_of<Base, Derived>(
41 template <typename Base, typename Derived>
42 LIBC_INLINE_VAR constexpr bool is_base_of_v = is_base_of<Base, Derived>::value;
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DIndirectThunks.h60 template <typename Derived, typename InsertedThunksTy = bool>
62 Derived &getDerived() { return *static_cast<Derived *>(this); } in getDerived()
118 template <typename Derived, typename InsertedThunksTy>
119 void ThunkInserter<Derived, InsertedThunksTy>::createThunkFunction( in createThunkFunction()
164 template <typename Derived, typename InsertedThunksTy>
165 bool ThunkInserter<Derived, InsertedThunksTy>::run(MachineModuleInfo &MMI, in run()
/freebsd/contrib/llvm-project/lldb/include/lldb/Utility/
H A DCloneable.h39 template <typename Derived, typename Base>
47 static_assert(std::is_base_of<Cloneable, Derived>::value, in Clone()
50 return std::make_shared<Derived>(static_cast<const Derived &>(*this)); in Clone()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DPointerUnion.h55 template <typename Derived, typename ValTy, int I, typename ...Types>
58 template <typename Derived, typename ValTy, int I>
59 class PointerUnionMembers<Derived, ValTy, I> {
65 friend struct PointerLikeTypeTraits<Derived>;
68 template <typename Derived, typename ValTy, int I, typename Type,
70 class PointerUnionMembers<Derived, ValTy, I, Type, Types...>
71 : public PointerUnionMembers<Derived, ValTy, I + 1, Types...> {
72 using Base = PointerUnionMembers<Derived, ValTy, I + 1, Types...>;
82 Derived &operator=(Type V) {
86 return static_cast<Derived &>(*this);
/freebsd/contrib/llvm-project/llvm/include/llvm/Demangle/
H A DItaniumDemangle.h2744 template <typename Derived, typename Alloc> struct AbstractManglingParser {
2827 Derived &getDerived() { return static_cast<Derived &>(*this); } in getDerived()
3061 template <typename Derived, typename Alloc>
3062 Node *AbstractManglingParser<Derived, Alloc>::parseName(NameState *State) { in parseName()
3097 template <typename Derived, typename Alloc>
3098 Node *AbstractManglingParser<Derived, Alloc>::parseLocalName(NameState *State) { in parseLocalName()
3137 template <typename Derived, typename Alloc>
3139 AbstractManglingParser<Derived, Alloc>::parseUnscopedName(NameState *State, in parseUnscopedName()
3178 template <typename Derived, typename Alloc>
3179 Node *AbstractManglingParser<Derived, Alloc>::parseUnqualifiedName( in parseUnqualifiedName()
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DStore.cpp254 SVal StoreManager::evalDerivedToBase(SVal Derived, const CastExpr *Cast) { in evalDerivedToBase() argument
257 if (!regionMatchesCXXRecordType(Derived, Cast->getSubExpr()->getType())) in evalDerivedToBase()
261 SVal Result = Derived; in evalDerivedToBase()
268 SVal StoreManager::evalDerivedToBase(SVal Derived, const CXXBasePath &Path) { in evalDerivedToBase() argument
270 SVal Result = Derived; in evalDerivedToBase()
277 SVal StoreManager::evalDerivedToBase(SVal Derived, QualType BaseType, in evalDerivedToBase() argument
279 const MemRegion *DerivedReg = Derived.getAsRegion(); in evalDerivedToBase()
281 return Derived; in evalDerivedToBase()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGNonTrivialStruct.cpp37 template <class Derived> struct StructVisitor {
72 Derived &asDerived() { return static_cast<Derived &>(*this); } in asDerived()
78 template <class Derived, bool IsMove>
79 struct CopyStructVisitor : StructVisitor<Derived>,
80 CopiedTypeVisitor<Derived, IsMove> {
81 using StructVisitor<Derived>::asDerived;
82 using Super = CopiedTypeVisitor<Derived, IsMove>;
84 CopyStructVisitor(ASTContext &Ctx) : StructVisitor<Derived>(Ctx) {} in CopyStructVisitor()
151 template <class Derived> struct GenFuncNameBase {
214 Derived &asDerived() { return static_cast<Derived &>(*this); } in asDerived()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/MCTargetDesc/
H A DM68kMemOperandPrinter.h23 template <class Derived, typename InstTy> class M68kMemOperandPrinter {
24 Derived &impl() { return *static_cast<Derived *>(this); } in impl()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCheckObjCInstMethSignature.cpp28 static bool AreTypesCompatible(QualType Derived, QualType Ancestor, in AreTypesCompatible() argument
33 if (Derived->isAnyPointerType() && Ancestor->isAnyPointerType()) in AreTypesCompatible()
36 return C.typesAreCompatible(Derived, Ancestor); in AreTypesCompatible()
/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/
H A DXtensaConstantPoolValue.h63 template <typename Derived>
71 if (Derived *APC = dyn_cast<Derived>(CPV)) in getExistingMachineCPValueImpl()
72 if (cast<Derived>(this)->equals(APC)) in getExistingMachineCPValueImpl()
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/
H A DCSKYConstantPoolValue.h87 template <typename Derived>
95 if (Derived *APC = dyn_cast<Derived>(CPV)) in getExistingMachineCPValueImpl()
96 if (cast<Derived>(this)->equals(APC)) in getExistingMachineCPValueImpl()

12345