Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DRecursiveASTVisitor.h154 template <typename Derived> class RecursiveASTVisitor {
165 Derived &getDerived() { return *static_cast<Derived *>(this); }
347 decltype(&Derived::Traverse##NAME)>::value \
351 decltype(&Derived::Traverse##NAME)>::value, \
352 Derived &, RecursiveASTVisitor &>>(*this) \
517 template <typename Derived>
518 bool RecursiveASTVisitor<Derived>::TraverseTypeConstraint(
536 template <typename Derived>
537 bool RecursiveASTVisitor<Derived>::TraverseConceptRequirement(
554 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>
107 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.h239 virtual void mangleCXXVFTable(const CXXRecordDecl *Derived,
246 virtual void mangleCXXVBTable(const CXXRecordDecl *Derived,
275 const CXXRecordDecl *Derived, uint32_t NVOffset, int32_t VBPtrOffset,
278 virtual void mangleCXXRTTIBaseClassArray(const CXXRecordDecl *Derived,
281 mangleCXXRTTIClassHierarchyDescriptor(const CXXRecordDecl *Derived,
285 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()
45 return invokeImpl(&Derived::remapImpl, Addr, Size, Name, Flags);
53 return invokeImpl(&Derived::setMemoryPermissionImpl, Addr, Size, Flags); in setMemoryPermission()
62 invokeImpl(&Derived::releasePagesToOSImpl, From, Size); in releasePagesToOS()
69 invokeImpl(&Derived::releaseAndZeroPagesToOSImpl, From, Size); in releaseAndZeroPagesToOS()
72 uptr getBase() { return invokeImpl(&Derived::getBaseImpl); } in getBase()
73 uptr getCapacity() { return invokeImpl(&Derived::getCapacityImpl); } in getCapacity()
79 R invokeImpl(R (Derived::*MemFn)(Args...), Args... args) { in invokeImpl()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DTreeTransform.h108 template<typename Derived>
114 Derived &Self;
118 ForgetPartiallySubstitutedPackRAII(Derived &Self) : Self(Self) { in ForgetPartiallySubstitutedPackRAII()
140 Derived &getDerived() { return static_cast<Derived&>(*this); } in getDerived()
143 const Derived &getDerived() const { in getDerived()
144 return static_cast<const Derived&>(*this); in getDerived()
4085 template <typename Derived>
4086 StmtResult TreeTransform<Derived>::TransformStmt(Stmt *S, StmtDiscardKind SDK) { in TransformStmt()
4121 template<typename Derived>
4122 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/include/clang/ExtractAPI/
H A DExtractAPIVisitor.h41 template <typename Derived>
42 class ExtractAPIVisitorBase : public RecursiveASTVisitor<Derived> {
166 Derived &getDerivedExtractAPIVisitor() { in getDerivedExtractAPIVisitor()
167 return *static_cast<Derived *>(this); in getDerivedExtractAPIVisitor()
261 template <typename Derived>
262 bool ExtractAPIVisitorBase<Derived>::VisitVarDecl(const VarDecl *Decl) { in VisitVarDecl()
323 template <typename Derived>
324 bool ExtractAPIVisitorBase<Derived>::VisitFunctionDecl( in VisitFunctionDecl()
392 template <typename Derived>
393 bool ExtractAPIVisitorBase<Derived>::VisitEnumDecl(const EnumDecl *Decl) { in VisitEnumDecl()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Passes/
H A DCodeGenPassBuilder.h518 template <typename Derived, typename TargetMachineT>
519 Error CodeGenPassBuilder<Derived, TargetMachineT>::buildPipeline( in buildPipeline()
562 template <typename Derived, typename TargetMachineT>
563 void CodeGenPassBuilder<Derived, TargetMachineT>::setStartStopPasses( in setStartStopPasses()
605 template <typename Derived, typename TargetMachineT>
606 Error CodeGenPassBuilder<Derived, TargetMachineT>::verifyStartStop( in verifyStartStop()
624 template <typename Derived, typename TargetMachineT>
625 void CodeGenPassBuilder<Derived, TargetMachineT>::addISelPasses( in addISelPasses()
641 template <typename Derived, typename TargetMachineT>
642 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/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/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);
H A DIntrusiveRefCntPtr.h76 template <class Derived> class RefCountedBase {
103 delete static_cast<const Derived *>(this);
108 template <class Derived> class ThreadSafeRefCountedBase {
137 delete static_cast<const Derived *>(this);
/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/clang/include/clang/Analysis/FlowSensitive/
H A DASTOps.h91 template <class Derived>
92 class AnalysisASTVisitor : public RecursiveASTVisitor<Derived> {
107 return RecursiveASTVisitor<Derived>::TraverseDecl(D); in TraverseDecl()
118 return RecursiveASTVisitor<Derived>::TraverseCXXTypeidExpr(TIE); in TraverseCXXTypeidExpr()
130 return RecursiveASTVisitor<Derived>::TraverseBindingDecl(BD); in TraverseBindingDecl()
/freebsd/contrib/llvm-project/llvm/include/llvm/Demangle/
H A DItaniumDemangle.h2607 template <typename Derived, typename Alloc> struct AbstractManglingParser {
2690 Derived &getDerived() { return static_cast<Derived &>(*this); } in getDerived()
2924 template <typename Derived, typename Alloc>
2925 Node *AbstractManglingParser<Derived, Alloc>::parseName(NameState *State) { in parseName()
2960 template <typename Derived, typename Alloc>
2961 Node *AbstractManglingParser<Derived, Alloc>::parseLocalName(NameState *State) { in parseLocalName()
3000 template <typename Derived, typename Alloc>
3002 AbstractManglingParser<Derived, Alloc>::parseUnscopedName(NameState *State, in parseUnscopedName()
3041 template <typename Derived, typename Alloc>
3042 Node *AbstractManglingParser<Derived, Alloc>::parseUnqualifiedName( in parseUnqualifiedName()
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DStore.cpp252 SVal StoreManager::evalDerivedToBase(SVal Derived, const CastExpr *Cast) { in evalDerivedToBase() argument
255 if (!regionMatchesCXXRecordType(Derived, Cast->getSubExpr()->getType())) in evalDerivedToBase()
259 SVal Result = Derived; in evalDerivedToBase()
266 SVal StoreManager::evalDerivedToBase(SVal Derived, const CXXBasePath &Path) { in evalDerivedToBase() argument
268 SVal Result = Derived; in evalDerivedToBase()
275 SVal StoreManager::evalDerivedToBase(SVal Derived, QualType BaseType, in evalDerivedToBase() argument
277 const MemRegion *DerivedReg = Derived.getAsRegion(); in evalDerivedToBase()
279 return Derived; in evalDerivedToBase()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGNonTrivialStruct.cpp36 template <class Derived> struct StructVisitor {
71 Derived &asDerived() { return static_cast<Derived &>(*this); } in asDerived()
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) {} in CopyStructVisitor()
150 template <class Derived> struct GenFuncNameBase {
213 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/include/llvm/Support/
H A DCrashRecoveryContext.h159 template<typename Derived, typename T>
171 static Derived *create(T *x) { in create()
174 return new Derived(context, x); in create()
/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()

1234