Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DASTTypeTraits.cpp49 bool ASTNodeKind::isBaseOf(ASTNodeKind Other, unsigned *Distance) const { in isBaseOf() function in ASTNodeKind
50 return isBaseOf(KindId, Other.KindId, Distance); in isBaseOf()
53 bool ASTNodeKind::isBaseOf(NodeKindId Base, NodeKindId Derived, in isBaseOf() function in ASTNodeKind
81 if (Kind1.isBaseOf(Kind2)) return Kind2; in getMostDerivedType()
82 if (Kind2.isBaseOf(Kind1)) return Kind1; in getMostDerivedType()
89 while (!isBaseOf(Parent, Kind2.KindId, nullptr) && Parent != NKI_None) { in getMostDerivedCommonAncestor()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DASTTypeTraits.h82 bool isBaseOf(ASTNodeKind Other, unsigned *Distance = nullptr) const;
165 static bool isBaseOf(NodeKindId Base, NodeKindId Derived, unsigned *Distance);
397 if (ASTNodeKind::getFromNodeKind<T>().isBaseOf(NodeKind))
402 assert(ASTNodeKind::getFromNodeKind<T>().isBaseOf(NodeKind));
/freebsd-13.1/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()
358 return From.isBaseOf(To); in canConvertTo()
/freebsd-13.1/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DVariantValue.cpp49 if (!NodeKind.isBaseOf(To.NodeKind, &Distance)) in isConvertibleTo()
H A DMarshallers.h605 if (Kind.isSame(DerivedKind) || !Kind.isBaseOf(DerivedKind)) {
/freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DUSRLocFinder.cpp487 if (ASTNodeKind::getFromNodeKind<Decl>().isBaseOf(Parents[0].getNodeKind())) in getClosestAncestorDecl()