Searched refs:ASTNodeKind (Results 1 - 7 of 7) sorted by relevance
/external/clang/unittests/AST/ |
H A D | ASTTypeTraitsTest.cpp | 20 TEST(ASTNodeKind, NoKind) { 21 EXPECT_FALSE(ASTNodeKind().isBaseOf(ASTNodeKind())); 22 EXPECT_FALSE(ASTNodeKind().isSame(ASTNodeKind())); 25 template <typename T> static ASTNodeKind DNT() { 26 return ASTNodeKind::getFromNodeKind<T>(); 29 TEST(ASTNodeKind, Bases) { 37 TEST(ASTNodeKind, BaseDistances) { 50 TEST(ASTNodeKind, SameBas [all...] |
/external/clang/include/clang/AST/ |
H A D | ASTTypeTraits.h | 45 class ASTNodeKind { class in namespace:clang::ast_type_traits 48 ASTNodeKind() : KindId(NKI_None) {} function in class:clang::ast_type_traits::ASTNodeKind 52 static ASTNodeKind getFromNodeKind() { 53 return ASTNodeKind(KindToKindId<T>::Id); 57 bool isSame(ASTNodeKind Other) const; 62 bool isBaseOf(ASTNodeKind Other, unsigned *Distance = nullptr) const; 67 /// \brief Strict weak ordering for ASTNodeKind. 68 bool operator<(const ASTNodeKind &Other) const { 97 ASTNodeKind(NodeKindId KindId) : KindId(KindId) {} function in class:clang::ast_type_traits::ASTNodeKind 125 template <> struct ASTNodeKind [all...] |
/external/clang/lib/AST/ |
H A D | ASTTypeTraits.cpp | 23 const ASTNodeKind::KindInfo ASTNodeKind::AllKindInfo[] = { 42 bool ASTNodeKind::isBaseOf(ASTNodeKind Other, unsigned *Distance) const { 46 bool ASTNodeKind::isSame(ASTNodeKind Other) const { 50 bool ASTNodeKind::isBaseOf(NodeKindId Base, NodeKindId Derived, 63 StringRef ASTNodeKind::asStringRef() const { return AllKindInfo[KindId].Name; }
|
/external/clang/lib/ASTMatchers/Dynamic/ |
H A D | Marshallers.h | 44 ArgKind(ast_type_traits::ASTNodeKind MatcherKind) 60 ast_type_traits::ASTNodeKind getMatcherKind() const { 73 ast_type_traits::ASTNodeKind MatcherKind; 105 return ArgKind(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()); 141 virtual void getArgKinds(ast_type_traits::ASTNodeKind ThisKind, unsigned ArgNo, 152 ast_type_traits::ASTNodeKind Kind, unsigned *Specificity = nullptr, 153 ast_type_traits::ASTNodeKind *LeastDerivedKind = nullptr) const = 0; 161 ArrayRef<ast_type_traits::ASTNodeKind> RetKinds, 162 ast_type_traits::ASTNodeKind Kind, unsigned *Specificity, 163 ast_type_traits::ASTNodeKind *LeastDerivedKin [all...] |
H A D | Registry.cpp | 341 const std::set<ASTNodeKind> &KS) { 343 for (std::set<ASTNodeKind>::const_iterator I = KS.begin(), E = KS.end(); 367 ASTNodeKind InitialTypes[] = { 368 ASTNodeKind::getFromNodeKind<Decl>(), 369 ASTNodeKind::getFromNodeKind<QualType>(), 370 ASTNodeKind::getFromNodeKind<Type>(), 371 ASTNodeKind::getFromNodeKind<Stmt>(), 372 ASTNodeKind::getFromNodeKind<NestedNameSpecifier>(), 373 ASTNodeKind::getFromNodeKind<NestedNameSpecifierLoc>(), 374 ASTNodeKind [all...] |
/external/clang/include/clang/ASTMatchers/Dynamic/ |
H A D | VariantValue.h | 152 ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
|
/external/clang/include/clang/ASTMatchers/ |
H A D | ASTMatchersInternal.h | 345 ast_type_traits::ASTNodeKind getSupportedKind() const { 356 ast_type_traits::ASTNodeKind::getFromNodeKind<T>()); 378 MatcherStorage(ast_type_traits::ASTNodeKind SupportedKind, uint64_t ID) 388 ast_type_traits::ASTNodeKind getSupportedKind() const { 395 const ast_type_traits::ASTNodeKind SupportedKind; 409 : MatcherStorage(ast_type_traits::ASTNodeKind::getFromNodeKind<T>(), 446 const ast_type_traits::ASTNodeKind SourceKind = getSupportedKind(); 448 ast_type_traits::ASTNodeKind::getFromNodeKind<Type>()) || 450 ast_type_traits::ASTNodeKind::getFromNodeKind<QualType>()); 456 const ast_type_traits::ASTNodeKind SourceKin [all...] |
Completed in 2563 milliseconds