Home
last modified time | relevance | path

Searched refs:ASTNodeKind (Results 1 – 18 of 18) sorted by relevance

/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DASTTypeTraits.h51 class ASTNodeKind {
58 return ASTNodeKind(KindToKindId<T>::Id); in getFromNodeKind()
81 bool isBaseOf(ASTNodeKind Other) const;
99 static ASTNodeKind getMostDerivedType(ASTNodeKind Kind1, ASTNodeKind Kind2);
104 static ASTNodeKind getMostDerivedCommonAncestor(ASTNodeKind Kind1,
107 ASTNodeKind getCladeKind() const;
112 static inline ASTNodeKind getEmptyKey() { return ASTNodeKind(); } in getEmptyKey()
116 return ASTNodeKind(NKI_NumberOfKinds); in getTombstoneKey()
119 static bool isEqual(const ASTNodeKind &LHS, const ASTNodeKind &RHS) { in isEqual()
500 ASTNodeKind NodeKind;
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DASTTypeTraits.cpp27 const ASTNodeKind::KindInfo ASTNodeKind::AllKindInfo[] = {
61 bool ASTNodeKind::isBaseOf(ASTNodeKind Other) const { in isBaseOf()
91 ASTNodeKind ASTNodeKind::getCladeKind() const { in getCladeKind()
104 ASTNodeKind ASTNodeKind::getMostDerivedType(ASTNodeKind Kind1, in getMostDerivedType()
111 ASTNodeKind ASTNodeKind::getMostDerivedCommonAncestor(ASTNodeKind Kind1, in getMostDerivedCommonAncestor()
120 ASTNodeKind ASTNodeKind::getFromNode(const Decl &D) { in getFromNode()
130 ASTNodeKind ASTNodeKind::getFromNode(const Stmt &S) { in getFromNode()
141 ASTNodeKind ASTNodeKind::getFromNode(const Type &T) { in getFromNode()
151 ASTNodeKind ASTNodeKind::getFromNode(const TypeLoc &T) { in getFromNode()
162 ASTNodeKind ASTNodeKind::getFromNode(const OMPClause &C) { in getFromNode()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/include/clang/ASTMatchers/Dynamic/
H A DVariantValue.h52 static ArgKind MakeNodeArg(ASTNodeKind MatcherKind) { in MakeNodeArg()
57 ASTNodeKind getMatcherKind() const { in getMatcherKind()
61 ASTNodeKind getNodeKind() const { in getNodeKind()
87 ASTNodeKind NodeKind;
126 ASTNodeKind NodeKind;
139 virtual bool isConvertibleTo(ASTNodeKind Kind,
189 bool hasTypedMatcher(ASTNodeKind NK) const { in hasTypedMatcher()
267 VariantValue(ASTNodeKind NodeKind);
298 const ASTNodeKind &getNodeKind() const;
299 void setNodeKind(ASTNodeKind NodeKind);
[all …]
H A DParser.h105 virtual ASTNodeKind nodeMatcherType(MatcherCtor) const = 0;
155 ASTNodeKind nodeMatcherType(MatcherCtor) const override;
H A DRegistry.h86 static ASTNodeKind nodeMatcherType(MatcherCtor);
/freebsd-14.2/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DMarshallers.h312 virtual ASTNodeKind nodeMatcherType() const { return ASTNodeKind(); }
584 std::vector<ASTNodeKind> RetKinds;
619 const ASTNodeKind DerivedKind;
934 ASTNodeKind CladeNodeKind;
935 std::vector<ASTNodeKind> NodeKinds;
1010 std::vector<ASTNodeKind> NodeKinds;
1059 std::vector<ASTNodeKind> RetTypes;
1070 std::vector<ASTNodeKind> RetTypes;
1083 std::vector<ASTNodeKind> RetTypes;
1096 std::vector<ASTNodeKind> RetTypes;
[all …]
H A DRegistry.cpp618 ASTNodeKind Registry::nodeMatcherType(MatcherCtor Ctor) { in nodeMatcherType()
663 ASTNodeKind InitialTypes[] = { in getAcceptedCompletionTypes()
664 ASTNodeKind::getFromNodeKind<Decl>(), in getAcceptedCompletionTypes()
665 ASTNodeKind::getFromNodeKind<QualType>(), in getAcceptedCompletionTypes()
666 ASTNodeKind::getFromNodeKind<Type>(), in getAcceptedCompletionTypes()
667 ASTNodeKind::getFromNodeKind<Stmt>(), in getAcceptedCompletionTypes()
670 ASTNodeKind::getFromNodeKind<TypeLoc>()}; in getAcceptedCompletionTypes()
703 std::set<ASTNodeKind> RetKinds; in getMatcherCompletions()
718 ASTNodeKind LeastDerivedKind; in getMatcherCompletions()
731 ASTNodeKind LeastDerivedKind; in getMatcherCompletions()
[all …]
H A DVariantValue.cpp112 bool isConvertibleTo(ASTNodeKind Kind, unsigned *Specificity) const override { in isConvertibleTo()
169 bool isConvertibleTo(ASTNodeKind Kind, unsigned *Specificity) const override { in isConvertibleTo()
212 bool isConvertibleTo(ASTNodeKind Kind, unsigned *Specificity) const override { in isConvertibleTo()
275 VariantValue::VariantValue(ASTNodeKind NodeKind) : Type(VT_Nothing) { in VariantValue()
397 const ASTNodeKind &VariantValue::getNodeKind() const { in getNodeKind()
402 void VariantValue::setNodeKind(ASTNodeKind NewValue) { in setNodeKind()
405 Value.NodeKind = new ASTNodeKind(NewValue); in setNodeKind()
H A DParser.cpp528 ASTNodeKind NK = S->nodeMatcherType(*MappedMatcher); in parseMatcherBuilder()
859 ASTNodeKind Parser::RegistrySema::nodeMatcherType(MatcherCtor Ctor) const { in nodeMatcherType()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchersInternal.h460 bool canMatchNodesOfKind(ASTNodeKind Kind) const;
517 bool canConvertTo(ASTNodeKind To) const;
544 DynTypedMatcher(ASTNodeKind SupportedKind, ASTNodeKind RestrictKind,
550 ASTNodeKind SupportedKind;
556 ASTNodeKind RestrictKind;
584 ASTNodeKind::getFromNodeKind<T>()));
670 ASTNodeKind::getFromNodeKind<T>()));
836 const ASTNodeKind SourceKind = getSupportedKind();
1356 Op, ASTNodeKind::getFromNodeKind<T>(),
1533 ASTNodeKind::getFromNodeKind<T>())
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp197 ASTNodeKind SupportedKind, in constructVariadic()
220 ASTNodeKind::getMostDerivedType(RestrictKind, IM.RestrictKind); in constructVariadic()
253 ASTNodeKind RestrictKind) { in constructRestrictedWrapper()
266 DynTypedMatcher DynTypedMatcher::trueMatcher(ASTNodeKind NodeKind) { in trueMatcher()
275 bool DynTypedMatcher::canMatchNodesOfKind(ASTNodeKind Kind) const { in canMatchNodesOfKind()
279 DynTypedMatcher DynTypedMatcher::dynCastTo(const ASTNodeKind Kind) const { in dynCastTo()
282 Copy.RestrictKind = ASTNodeKind::getMostDerivedType(Kind, RestrictKind); in dynCastTo()
351 bool DynTypedMatcher::canConvertTo(ASTNodeKind To) const { in canConvertTo()
353 auto QualKind = ASTNodeKind::getFromNodeKind<QualType>(); in canConvertTo()
354 auto TypeKind = ASTNodeKind::getFromNodeKind<Type>(); in canConvertTo()
H A DASTMatchFinder.cpp1071 const std::vector<unsigned short> &getFilterForKind(ASTNodeKind Kind) { in getFilterForKind()
1329 llvm::DenseMap<ASTNodeKind, std::vector<unsigned short>> MatcherFiltersMap;
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Tooling/ASTDiff/
H A DASTDiff.h45 ASTNodeKind getType() const;
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DRangeSelector.cpp36 static Error typeError(StringRef ID, const ASTNodeKind &Kind) { in typeError()
41 static Error typeError(StringRef ID, const ASTNodeKind &Kind, in typeError()
H A DRewriteRule.cpp415 std::map<ASTNodeKind, in buildMatchers()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/
H A DMatchSwitch.h164 DynTypedMatcher::VO_AnyOf, ASTNodeKind::getFromNodeKind<BaseT>(), in BuildMatcher()
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DUSRLocFinder.cpp488 if (ASTNodeKind::getFromNodeKind<Decl>().isBaseOf(Parents[0].getNodeKind())) in getClosestAncestorDecl()
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/ASTDiff/
H A DASTDiff.cpp686 ASTNodeKind Node::getType() const { return ASTNode.getNodeKind(); } in getType()