Home
last modified time | relevance | path

Searched refs:isBaseOf (Results 1 – 6 of 6) sorted by relevance

/src/contrib/llvm-project/clang/lib/AST/
H A DASTTypeTraits.cpp61 bool ASTNodeKind::isBaseOf(ASTNodeKind Other) const { in isBaseOf() function in ASTNodeKind
62 return isBaseOf(KindId, Other.KindId); in isBaseOf()
65 bool ASTNodeKind::isBaseOf(ASTNodeKind Other, unsigned *Distance) const { in isBaseOf() function in ASTNodeKind
66 return isBaseOf(KindId, Other.KindId, Distance); in isBaseOf()
69 bool ASTNodeKind::isBaseOf(NodeKindId Base, NodeKindId Derived) { in isBaseOf() function in ASTNodeKind
78 bool ASTNodeKind::isBaseOf(NodeKindId Base, NodeKindId Derived, in isBaseOf() function in ASTNodeKind
106 if (Kind1.isBaseOf(Kind2)) return Kind2; in getMostDerivedType()
107 if (Kind2.isBaseOf(Kind1)) return Kind1; in getMostDerivedType()
114 while (!isBaseOf(Parent, Kind2.KindId) && Parent != NKI_None) { in getMostDerivedCommonAncestor()
/src/contrib/llvm-project/clang/include/clang/AST/
H A DASTTypeTraits.h81 bool isBaseOf(ASTNodeKind Other) const;
86 bool isBaseOf(ASTNodeKind Other, unsigned *Distance) const;
175 static bool isBaseOf(NodeKindId Base, NodeKindId Derived);
181 static bool isBaseOf(NodeKindId Base, NodeKindId Derived, unsigned *Distance);
326 if (ASTNodeKind::getFromNodeKind<TypeLoc>().isBaseOf(NodeKind)) {
358 if (ASTNodeKind::getFromNodeKind<TypeLoc>().isBaseOf(NodeKind))
387 if (ASTNodeKind::getFromNodeKind<TypeLoc>().isBaseOf(Val.NodeKind)) {
421 if (ASTNodeKind::getFromNodeKind<T>().isBaseOf(NodeKind))
426 assert(ASTNodeKind::getFromNodeKind<T>().isBaseOf(NodeKind));
484 if (ASTNodeKind::getFromNodeKind<T>().isBaseOf(NodeKind))
[all …]
/src/contrib/llvm-project/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp276 return RestrictKind.isBaseOf(Kind); in canMatchNodesOfKind()
303 if (RestrictKind.isBaseOf(N.getNodeKind()) && in matches()
331 assert(RestrictKind.isBaseOf(N.getNodeKind())); in matchesNoKindCheck()
359 return From.isBaseOf(To); in canConvertTo()
/src/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DVariantValue.cpp50 if (!NodeKind.isBaseOf(To.NodeKind, &Distance)) in isConvertibleTo()
H A DMarshallers.h606 if (Kind.isSame(DerivedKind) || !Kind.isBaseOf(DerivedKind)) {
/src/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DUSRLocFinder.cpp488 if (ASTNodeKind::getFromNodeKind<Decl>().isBaseOf(Parents[0].getNodeKind())) in getClosestAncestorDecl()