/external/clang/include/clang/AST/ |
D | ASTTypeTraits.h | 46 class ASTNodeKind { 49 ASTNodeKind() : KindId(NKI_None) {} in ASTNodeKind() function 53 static ASTNodeKind getFromNodeKind() { in getFromNodeKind() 54 return ASTNodeKind(KindToKindId<T>::Id); in getFromNodeKind() 59 static ASTNodeKind getFromNode(const Decl &D); 60 static ASTNodeKind getFromNode(const Stmt &S); 61 static ASTNodeKind getFromNode(const Type &T); 65 bool isSame(ASTNodeKind Other) const { in isSame() 75 bool isBaseOf(ASTNodeKind Other, unsigned *Distance = nullptr) const; 81 bool operator<(const ASTNodeKind &Other) const { [all …]
|
/external/clang/unittests/AST/ |
D | ASTTypeTraitsTest.cpp | 20 TEST(ASTNodeKind, NoKind) { in TEST() argument 21 EXPECT_FALSE(ASTNodeKind().isBaseOf(ASTNodeKind())); in TEST() 22 EXPECT_FALSE(ASTNodeKind().isSame(ASTNodeKind())); in TEST() 25 template <typename T> static ASTNodeKind DNT() { in DNT() 26 return ASTNodeKind::getFromNodeKind<T>(); in DNT() 29 TEST(ASTNodeKind, IsNone) { in TEST() argument 30 EXPECT_TRUE(ASTNodeKind().isNone()); in TEST() 35 TEST(ASTNodeKind, Bases) { in TEST() argument 43 TEST(ASTNodeKind, BaseDistances) { in TEST() argument 56 TEST(ASTNodeKind, SameBase) { in TEST() argument [all …]
|
/external/clang/lib/AST/ |
D | ASTTypeTraits.cpp | 23 const ASTNodeKind::KindInfo ASTNodeKind::AllKindInfo[] = { 42 bool ASTNodeKind::isBaseOf(ASTNodeKind Other, unsigned *Distance) const { in isBaseOf() 46 bool ASTNodeKind::isBaseOf(NodeKindId Base, NodeKindId Derived, in isBaseOf() 59 StringRef ASTNodeKind::asStringRef() const { return AllKindInfo[KindId].Name; } in asStringRef() 61 ASTNodeKind ASTNodeKind::getMostDerivedType(ASTNodeKind Kind1, in getMostDerivedType() 62 ASTNodeKind Kind2) { in getMostDerivedType() 65 return ASTNodeKind(); in getMostDerivedType() 68 ASTNodeKind ASTNodeKind::getMostDerivedCommonAncestor(ASTNodeKind Kind1, in getMostDerivedCommonAncestor() 69 ASTNodeKind Kind2) { in getMostDerivedCommonAncestor() 74 return ASTNodeKind(Parent); in getMostDerivedCommonAncestor() [all …]
|
/external/clang/lib/ASTMatchers/Dynamic/ |
D | Marshallers.h | 64 return ArgKind(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()); 143 virtual void getArgKinds(ast_type_traits::ASTNodeKind ThisKind, unsigned ArgNo, 154 ast_type_traits::ASTNodeKind Kind, unsigned *Specificity = nullptr, 155 ast_type_traits::ASTNodeKind *LeastDerivedKind = nullptr) const = 0; 163 ArrayRef<ast_type_traits::ASTNodeKind> RetKinds, 164 ast_type_traits::ASTNodeKind Kind, unsigned *Specificity, 165 ast_type_traits::ASTNodeKind *LeastDerivedKind) { 166 for (const ast_type_traits::ASTNodeKind &NodeKind : RetKinds) { 198 ArrayRef<ast_type_traits::ASTNodeKind> RetKinds, 212 void getArgKinds(ast_type_traits::ASTNodeKind ThisKind, unsigned ArgNo, [all …]
|
D | Registry.cpp | 444 const std::set<ASTNodeKind> &KS) { in operator <<() 446 for (std::set<ASTNodeKind>::const_iterator I = KS.begin(), E = KS.end(); in operator <<() 463 ASTNodeKind InitialTypes[] = { in getAcceptedCompletionTypes() 464 ASTNodeKind::getFromNodeKind<Decl>(), in getAcceptedCompletionTypes() 465 ASTNodeKind::getFromNodeKind<QualType>(), in getAcceptedCompletionTypes() 466 ASTNodeKind::getFromNodeKind<Type>(), in getAcceptedCompletionTypes() 467 ASTNodeKind::getFromNodeKind<Stmt>(), in getAcceptedCompletionTypes() 468 ASTNodeKind::getFromNodeKind<NestedNameSpecifier>(), in getAcceptedCompletionTypes() 469 ASTNodeKind::getFromNodeKind<NestedNameSpecifierLoc>(), in getAcceptedCompletionTypes() 470 ASTNodeKind::getFromNodeKind<TypeLoc>()}; in getAcceptedCompletionTypes() [all …]
|
D | VariantValue.cpp | 101 bool isConvertibleTo(ast_type_traits::ASTNodeKind Kind, in isConvertibleTo() 159 bool isConvertibleTo(ast_type_traits::ASTNodeKind Kind, in isConvertibleTo() 202 bool isConvertibleTo(ast_type_traits::ASTNodeKind Kind, in isConvertibleTo()
|
/external/clang/include/clang/ASTMatchers/Dynamic/ |
D | VariantValue.h | 46 ArgKind(ast_type_traits::ASTNodeKind MatcherKind) in ArgKind() 50 ast_type_traits::ASTNodeKind getMatcherKind() const { in getMatcherKind() 74 ast_type_traits::ASTNodeKind MatcherKind; 96 MatcherOps(ast_type_traits::ASTNodeKind NodeKind) : NodeKind(NodeKind) {} in MatcherOps() 117 ast_type_traits::ASTNodeKind NodeKind; 130 virtual bool isConvertibleTo(ast_type_traits::ASTNodeKind Kind, 187 bool isConvertibleTo(ast_type_traits::ASTNodeKind Kind, in isConvertibleTo() 226 : MatcherOps(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()) {} in TypedMatcherOps()
|
/external/clang/lib/ASTMatchers/ |
D | ASTMatchersInternal.cpp | 114 ast_type_traits::ASTNodeKind SupportedKind, in constructVariadic() 136 RestrictKind = ast_type_traits::ASTNodeKind::getMostDerivedType( in constructVariadic() 164 ast_type_traits::ASTNodeKind NodeKind) { in trueMatcher() 169 ast_type_traits::ASTNodeKind Kind) const { in canMatchNodesOfKind() 174 const ast_type_traits::ASTNodeKind Kind) const { in dynCastTo() 178 ast_type_traits::ASTNodeKind::getMostDerivedType(Kind, RestrictKind); in dynCastTo() 217 bool DynTypedMatcher::canConvertTo(ast_type_traits::ASTNodeKind To) const { in canConvertTo() 219 auto QualKind = ast_type_traits::ASTNodeKind::getFromNodeKind<QualType>(); in canConvertTo() 220 auto TypeKind = ast_type_traits::ASTNodeKind::getFromNodeKind<Type>(); in canConvertTo()
|
D | ASTMatchFinder.cpp | 560 getFilterForKind(ast_type_traits::ASTNodeKind Kind) { in getFilterForKind() 744 llvm::DenseMap<ast_type_traits::ASTNodeKind, std::vector<unsigned short>>
|
/external/clang/include/clang/ASTMatchers/ |
D | ASTMatchersInternal.h | 321 SupportedKind(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()), in DynTypedMatcher() 342 ast_type_traits::ASTNodeKind SupportedKind, 348 static DynTypedMatcher trueMatcher(ast_type_traits::ASTNodeKind NodeKind); 355 bool canMatchNodesOfKind(ast_type_traits::ASTNodeKind Kind) const; 359 DynTypedMatcher dynCastTo(const ast_type_traits::ASTNodeKind Kind) const; 385 typedef std::pair<ast_type_traits::ASTNodeKind, uint64_t> MatcherIDType; 397 ast_type_traits::ASTNodeKind getSupportedKind() const { in getSupportedKind() 407 return canConvertTo(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()); in canConvertTo() 409 bool canConvertTo(ast_type_traits::ASTNodeKind To) const; 428 DynTypedMatcher(ast_type_traits::ASTNodeKind SupportedKind, in DynTypedMatcher() [all …]
|
/external/clang/unittests/ASTMatchers/ |
D | ASTMatchersInternalTest.cpp | 50 ast_type_traits::ASTNodeKind::getFromNodeKind<QualType>(), in TEST()
|