/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/llvm-project/clang/include/clang/AST/ |
D | ASTTypeTraits.h | 52 class ASTNodeKind { 55 ASTNodeKind() : KindId(NKI_None) {} in ASTNodeKind() function 59 static ASTNodeKind getFromNodeKind() { in getFromNodeKind() 60 return ASTNodeKind(KindToKindId<T>::Id); in getFromNodeKind() 65 static ASTNodeKind getFromNode(const Decl &D); 66 static ASTNodeKind getFromNode(const Stmt &S); 67 static ASTNodeKind getFromNode(const Type &T); 68 static ASTNodeKind getFromNode(const OMPClause &C); 72 bool isSame(ASTNodeKind Other) const { in isSame() 82 bool isBaseOf(ASTNodeKind Other, unsigned *Distance = nullptr) 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/llvm-project/clang/lib/AST/ |
D | ASTTypeTraits.cpp | 23 const ASTNodeKind::KindInfo ASTNodeKind::AllKindInfo[] = { 48 bool ASTNodeKind::isBaseOf(ASTNodeKind Other, unsigned *Distance) const { in isBaseOf() 52 bool ASTNodeKind::isBaseOf(NodeKindId Base, NodeKindId Derived, in isBaseOf() 65 StringRef ASTNodeKind::asStringRef() const { return AllKindInfo[KindId].Name; } in asStringRef() 67 ASTNodeKind ASTNodeKind::getMostDerivedType(ASTNodeKind Kind1, in getMostDerivedType() 68 ASTNodeKind Kind2) { in getMostDerivedType() 71 return ASTNodeKind(); in getMostDerivedType() 74 ASTNodeKind ASTNodeKind::getMostDerivedCommonAncestor(ASTNodeKind Kind1, in getMostDerivedCommonAncestor() 75 ASTNodeKind Kind2) { in getMostDerivedCommonAncestor() 80 return ASTNodeKind(Parent); in getMostDerivedCommonAncestor() [all …]
|
/external/llvm-project/clang/unittests/AST/ |
D | ASTTypeTraitsTest.cpp | 19 TEST(ASTNodeKind, NoKind) { in TEST() argument 20 EXPECT_FALSE(ASTNodeKind().isBaseOf(ASTNodeKind())); in TEST() 21 EXPECT_FALSE(ASTNodeKind().isSame(ASTNodeKind())); in TEST() 24 template <typename T> static ASTNodeKind DNT() { in DNT() 25 return ASTNodeKind::getFromNodeKind<T>(); in DNT() 28 TEST(ASTNodeKind, IsNone) { in TEST() argument 29 EXPECT_TRUE(ASTNodeKind().isNone()); in TEST() 34 TEST(ASTNodeKind, Bases) { in TEST() argument 42 TEST(ASTNodeKind, BaseDistances) { in TEST() argument 55 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/llvm-project/clang/lib/ASTMatchers/Dynamic/ |
D | Marshallers.h | 96 return ArgKind(ASTNodeKind::getFromNodeKind<T>()); 317 virtual void getArgKinds(ASTNodeKind ThisKind, unsigned ArgNo, 328 isConvertibleTo(ASTNodeKind Kind, unsigned *Specificity = nullptr, 329 ASTNodeKind *LeastDerivedKind = nullptr) const = 0; 336 inline bool isRetKindConvertibleTo(ArrayRef<ASTNodeKind> RetKinds, 337 ASTNodeKind Kind, unsigned *Specificity, 338 ASTNodeKind *LeastDerivedKind) { 339 for (const ASTNodeKind &NodeKind : RetKinds) { 371 ArrayRef<ASTNodeKind> RetKinds, 386 void getArgKinds(ASTNodeKind ThisKind, unsigned ArgNo, [all …]
|
D | Registry.cpp | 568 const std::set<ASTNodeKind> &KS) { in operator <<() 570 for (std::set<ASTNodeKind>::const_iterator I = KS.begin(), E = KS.end(); in operator <<() 585 ASTNodeKind InitialTypes[] = { in getAcceptedCompletionTypes() 586 ASTNodeKind::getFromNodeKind<Decl>(), in getAcceptedCompletionTypes() 587 ASTNodeKind::getFromNodeKind<QualType>(), in getAcceptedCompletionTypes() 588 ASTNodeKind::getFromNodeKind<Type>(), in getAcceptedCompletionTypes() 589 ASTNodeKind::getFromNodeKind<Stmt>(), in getAcceptedCompletionTypes() 590 ASTNodeKind::getFromNodeKind<NestedNameSpecifier>(), in getAcceptedCompletionTypes() 591 ASTNodeKind::getFromNodeKind<NestedNameSpecifierLoc>(), in getAcceptedCompletionTypes() 592 ASTNodeKind::getFromNodeKind<TypeLoc>()}; in getAcceptedCompletionTypes() [all …]
|
D | VariantValue.cpp | 104 bool isConvertibleTo(ASTNodeKind Kind, unsigned *Specificity) const override { in isConvertibleTo() 161 bool isConvertibleTo(ASTNodeKind Kind, unsigned *Specificity) const override { in isConvertibleTo() 203 bool isConvertibleTo(ASTNodeKind Kind, unsigned *Specificity) const override { 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/llvm-project/clang/include/clang/ASTMatchers/Dynamic/ |
D | VariantValue.h | 47 ArgKind(ASTNodeKind MatcherKind) : K(AK_Matcher), MatcherKind(MatcherKind) {} in ArgKind() 50 ASTNodeKind getMatcherKind() const { in getMatcherKind() 74 ASTNodeKind MatcherKind; 96 MatcherOps(ASTNodeKind NodeKind) : NodeKind(NodeKind) {} in MatcherOps() 117 ASTNodeKind NodeKind; 130 virtual bool isConvertibleTo(ASTNodeKind Kind, 187 bool isConvertibleTo(ASTNodeKind Kind, unsigned *Specificity) const { in isConvertibleTo() 225 TypedMatcherOps() : MatcherOps(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/llvm-project/clang/include/clang/ASTMatchers/ |
D | ASTMatchersInternal.h | 360 : SupportedKind(ASTNodeKind::getFromNodeKind<T>()), in DynTypedMatcher() 388 constructVariadic(VariadicOperator Op, ASTNodeKind SupportedKind, 393 ASTNodeKind RestrictKind); 398 static DynTypedMatcher trueMatcher(ASTNodeKind NodeKind); 405 bool canMatchNodesOfKind(ASTNodeKind Kind) const; 409 DynTypedMatcher dynCastTo(const ASTNodeKind Kind) const; 440 using MatcherIDType = std::pair<ASTNodeKind, uint64_t>; 452 ASTNodeKind getSupportedKind() const { return SupportedKind; } in getSupportedKind() 460 return canConvertTo(ASTNodeKind::getFromNodeKind<T>()); in canConvertTo() 462 bool canConvertTo(ASTNodeKind To) const; [all …]
|
/external/llvm-project/clang/lib/ASTMatchers/ |
D | ASTMatchersInternal.cpp | 197 ASTNodeKind SupportedKind, in constructVariadic() 220 ASTNodeKind::getMostDerivedType(RestrictKind, IM.RestrictKind); in constructVariadic() 253 ASTNodeKind RestrictKind) { in constructRestrictedWrapper() 267 DynTypedMatcher DynTypedMatcher::trueMatcher(ASTNodeKind NodeKind) { in trueMatcher() 276 bool DynTypedMatcher::canMatchNodesOfKind(ASTNodeKind Kind) const { in canMatchNodesOfKind() 280 DynTypedMatcher DynTypedMatcher::dynCastTo(const ASTNodeKind Kind) const { in dynCastTo() 283 Copy.RestrictKind = ASTNodeKind::getMostDerivedType(Kind, RestrictKind); in dynCastTo() 343 bool DynTypedMatcher::canConvertTo(ASTNodeKind To) const { in canConvertTo() 345 auto QualKind = ASTNodeKind::getFromNodeKind<QualType>(); in canConvertTo() 346 auto TypeKind = ASTNodeKind::getFromNodeKind<Type>(); in canConvertTo()
|
/external/llvm-project/clang/include/clang/Tooling/ASTDiff/ |
D | ASTDiff.h | 44 ASTNodeKind getType() const;
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | XRefs.cpp | 178 ASTNodeKind *NodeKind = nullptr) { in getDeclAtPositionWithRelations() 197 ASTNodeKind *NodeKind = nullptr) { in getDeclAtPosition() 302 const SymbolIndex *Index, ASTNodeKind *NodeKind) { in locateASTReferent() 441 bool isDependentName(ASTNodeKind NodeKind) { in isDependentName() 442 return NodeKind.isSame(ASTNodeKind::getFromNodeKind<OverloadExpr>()) || in isDependentName() 444 ASTNodeKind::getFromNodeKind<CXXDependentScopeMemberExpr>()) || in isDependentName() 446 ASTNodeKind::getFromNodeKind<DependentScopeDeclRefExpr>()); in isDependentName() 454 ASTNodeKind NodeKind) { in locateSymbolTextually() 680 ASTNodeKind NodeKind; in locateSymbolAt()
|
D | XRefs.h | 66 ASTNodeKind NodeKind);
|
/external/llvm-project/clang/lib/Tooling/Transformer/ |
D | RangeSelector.cpp | 35 static Error typeError(StringRef ID, const ASTNodeKind &Kind) { in typeError() 40 static Error typeError(StringRef ID, const ASTNodeKind &Kind, in typeError()
|
/external/clang/unittests/ASTMatchers/ |
D | ASTMatchersInternalTest.cpp | 50 ast_type_traits::ASTNodeKind::getFromNodeKind<QualType>(), in TEST()
|
/external/llvm-project/clang/unittests/ASTMatchers/ |
D | ASTMatchersInternalTest.cpp | 43 ASTNodeKind::getFromNodeKind<QualType>(), in TEST()
|