/external/clang/include/clang/ASTMatchers/ |
D | ASTMatchers.h | 116 const internal::BindableMatcher<T> &InnerMatcher) { in id() argument 117 return InnerMatcher.bind(ID); in id() 576 internal::Matcher<TemplateArgument>, InnerMatcher) { in AST_POLYMORPHIC_MATCHER_P() argument 579 return matchesFirstInRange(InnerMatcher, List.begin(), List.end(), Finder, in AST_POLYMORPHIC_MATCHER_P() 605 InnerMatcher) { in AST_MATCHER_P() argument 606 return InnerMatcher.matches(*Node.IgnoreImplicit(), Finder, Builder); in AST_MATCHER_P() 635 internal::Matcher<Expr>, InnerMatcher) { in AST_MATCHER_P() argument 636 return InnerMatcher.matches(*Node.IgnoreImpCasts(), Finder, Builder); in AST_MATCHER_P() 656 AST_MATCHER_P(Expr, ignoringParenCasts, internal::Matcher<Expr>, InnerMatcher) { in AST_MATCHER_P() argument 657 return InnerMatcher.matches(*Node.IgnoreParenCasts(), Finder, Builder); in AST_MATCHER_P() [all …]
|
D | ASTMatchersInternal.h | 453 explicit WrapperMatcherInterface(DynTypedMatcher &&InnerMatcher) in WrapperMatcherInterface() argument 454 : InnerMatcher(std::move(InnerMatcher)) {} in WrapperMatcherInterface() 456 const DynTypedMatcher InnerMatcher; variable 533 TypeToQualType(const Matcher<TypeT> &InnerMatcher) in TypeToQualType() argument 534 : TypeToQualType::WrapperMatcherInterface(InnerMatcher) {} in TypeToQualType() 540 return this->InnerMatcher.matches( in matches() 722 explicit HasDeclarationMatcher(const Matcher<Decl> &InnerMatcher) in HasDeclarationMatcher() argument 723 : HasDeclarationMatcher::WrapperMatcherInterface(InnerMatcher) {} in HasDeclarationMatcher() 811 this->InnerMatcher.matches( in matchesDecl() 1035 explicit Adaptor(const Matcher<T> &InnerMatcher) [all …]
|
/external/llvm-project/clang/include/clang/ASTMatchers/ |
D | ASTMatchers.h | 706 InnerMatcher) { in AST_MATCHER_P() argument 709 InnerMatcher.matches(*Initializer, Finder, Builder)); in AST_MATCHER_P() 729 internal::Matcher<ClassTemplateDecl>, InnerMatcher) { in AST_MATCHER_P() argument 732 InnerMatcher.matches(*Decl, Finder, Builder)); in AST_MATCHER_P() 767 internal::Matcher<TemplateArgument>, InnerMatcher) { in AST_POLYMORPHIC_MATCHER_P() argument 770 return matchesFirstInRange(InnerMatcher, List.begin(), List.end(), Finder, in AST_POLYMORPHIC_MATCHER_P() 792 const internal::Matcher<T> &InnerMatcher) { in traverse() argument 794 new internal::TraversalMatcher<T>(TK, InnerMatcher), in traverse() 795 InnerMatcher.getID().first) in traverse() 801 traverse(TraversalKind TK, const internal::BindableMatcher<T> &InnerMatcher) { in traverse() argument [all …]
|
D | ASTMatchersInternal.h | 392 constructRestrictedWrapper(const DynTypedMatcher &InnerMatcher, 576 const DynTypedMatcher InnerMatcher; variable 579 TypeToQualType(const Matcher<TypeT> &InnerMatcher) in TypeToQualType() argument 580 : InnerMatcher(InnerMatcher) {} in TypeToQualType() 586 return this->InnerMatcher.matches(DynTypedNode::create(*Node), Finder, in matches() 591 return this->InnerMatcher.getTraversalKind(); in TraversalKind() 909 const DynTypedMatcher InnerMatcher; variable 912 explicit HasDeclarationMatcher(const Matcher<Decl> &InnerMatcher) in HasDeclarationMatcher() argument 913 : InnerMatcher(InnerMatcher) {} in HasDeclarationMatcher() 1069 return Node != nullptr && this->InnerMatcher.matches( in matchesDecl() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Testing/Support/ |
D | SupportHelpers.h | 59 template <class InnerMatcher> class ValueIsMatcher { 61 explicit ValueIsMatcher(InnerMatcher ValueMatcher) in ValueIsMatcher() 95 InnerMatcher ValueMatcher; 101 template <class InnerMatcher> 102 detail::ValueIsMatcher<InnerMatcher> ValueIs(const InnerMatcher &ValueMatcher) { in ValueIs() 103 return detail::ValueIsMatcher<InnerMatcher>(ValueMatcher); in ValueIs()
|
/external/llvm-project/clang-tools-extra/clangd/unittests/ |
D | Matchers.h | 132 template <typename InnerMatcher> class OptionalMatcher { 134 explicit OptionalMatcher(const InnerMatcher &matcher) : matcher_(matcher) {} in OptionalMatcher() 155 explicit Impl(const InnerMatcher &matcher) in Impl() 184 const InnerMatcher matcher_; 191 template <typename InnerMatcher> 192 inline OptionalMatcher<InnerMatcher> 193 HasValue(const InnerMatcher &inner_matcher) { in HasValue() 194 return OptionalMatcher<InnerMatcher>(inner_matcher); in HasValue()
|
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
D | ProBoundsArrayToPointerDecayCheck.cpp | 22 ast_matchers::internal::Matcher<DeclStmt>, InnerMatcher) { in AST_MATCHER_P() argument 24 if (Stmt != nullptr && InnerMatcher.matches(*Stmt, Finder, Builder)) in AST_MATCHER_P() 36 ast_matchers::internal::Matcher<Expr>, InnerMatcher) { in AST_MATCHER_P() argument 47 return InnerMatcher.matches(*E, Finder, Builder); in AST_MATCHER_P()
|
/external/llvm-project/llvm/include/llvm/Testing/Support/ |
D | SupportHelpers.h | 61 template <class InnerMatcher> class ValueIsMatcher { 63 explicit ValueIsMatcher(InnerMatcher ValueMatcher) in ValueIsMatcher() 97 InnerMatcher ValueMatcher; 103 template <class InnerMatcher> 104 detail::ValueIsMatcher<InnerMatcher> ValueIs(const InnerMatcher &ValueMatcher) { in ValueIs() 105 return detail::ValueIsMatcher<InnerMatcher>(ValueMatcher); in ValueIs()
|
/external/clang/lib/ASTMatchers/ |
D | ASTMatchersInternal.cpp | 77 const IntrusiveRefCntPtr<DynMatcherInterface> &InnerMatcher) in IdDynMatcher() argument 78 : ID(ID), InnerMatcher(InnerMatcher) {} in IdDynMatcher() 83 bool Result = InnerMatcher->dynMatches(DynNode, Finder, Builder); in dynMatches() 90 const IntrusiveRefCntPtr<DynMatcherInterface> InnerMatcher; member in clang::ast_matchers::internal::__anon35ddf40d0111::IdDynMatcher 259 for (const DynTypedMatcher &InnerMatcher : InnerMatchers) { in AllOfVariadicOperator() local 260 if (!InnerMatcher.matchesNoKindCheck(DynNode, Finder, Builder)) in AllOfVariadicOperator() 272 for (const DynTypedMatcher &InnerMatcher : InnerMatchers) { in EachOfVariadicOperator() local 274 if (InnerMatcher.matches(DynNode, Finder, &BuilderInner)) { in EachOfVariadicOperator() 287 for (const DynTypedMatcher &InnerMatcher : InnerMatchers) { in AnyOfVariadicOperator() local 289 if (InnerMatcher.matches(DynNode, Finder, &Result)) { in AnyOfVariadicOperator()
|
/external/llvm-project/clang/lib/Analysis/ |
D | ExprMutationAnalyzer.cpp | 25 ast_matchers::internal::Matcher<DeclStmt>, InnerMatcher) { in AST_MATCHER_P() argument 27 return InnerMatcher.matches(*Range, Finder, Builder); in AST_MATCHER_P() 31 InnerMatcher) { in AST_MATCHER_P() argument 39 return InnerMatcher.matches(*Result, Finder, Builder); in AST_MATCHER_P() 43 InnerMatcher) { in AST_MATCHER_P() argument 62 hasTrueExpression(ignoringParens(canResolveToExpr(InnerMatcher))), in AST_MATCHER_P() 63 hasFalseExpression(ignoringParens(canResolveToExpr(InnerMatcher))))); in AST_MATCHER_P() 65 hasTrueExpression(ignoringParens(canResolveToExpr(InnerMatcher))), in AST_MATCHER_P() 66 hasFalseExpression(ignoringParens(canResolveToExpr(InnerMatcher))))); in AST_MATCHER_P() 69 expr(anyOf(IgnoreDerivedToBase(InnerMatcher), in AST_MATCHER_P() [all …]
|
/external/llvm-project/clang/lib/ASTMatchers/ |
D | ASTMatchersInternal.cpp | 133 IntrusiveRefCntPtr<DynMatcherInterface> InnerMatcher) in IdDynMatcher() argument 134 : ID(ID), InnerMatcher(std::move(InnerMatcher)) {} in IdDynMatcher() 138 bool Result = InnerMatcher->dynMatches(DynNode, Finder, Builder); in dynMatches() 144 return InnerMatcher->TraversalKind(); in TraversalKind() 149 const IntrusiveRefCntPtr<DynMatcherInterface> InnerMatcher; member in clang::ast_matchers::internal::__anonc7f1537b0211::IdDynMatcher 171 IntrusiveRefCntPtr<DynMatcherInterface> InnerMatcher) in DynTraversalMatcherImpl() argument 172 : TK(TK), InnerMatcher(std::move(InnerMatcher)) {} in DynTraversalMatcherImpl() 176 return this->InnerMatcher->dynMatches(DynNode, Finder, Builder); in dynMatches() 185 IntrusiveRefCntPtr<DynMatcherInterface> InnerMatcher; member in clang::ast_matchers::internal::__anonc7f1537b0211::DynTraversalMatcherImpl 252 DynTypedMatcher::constructRestrictedWrapper(const DynTypedMatcher &InnerMatcher, in constructRestrictedWrapper() argument [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/readability/ |
D | QualifiedAutoCheck.cpp | 25 ast_matchers::internal::Matcher<QualType>, InnerMatcher) { in AST_MATCHER_P() argument 26 return InnerMatcher.matches(Node.getUnqualifiedType(), Finder, Builder); in AST_MATCHER_P() 111 [](const ast_matchers::internal::Matcher<VarDecl> &InnerMatcher, in registerMatchers() 116 varDecl(unless(isImplicit()), InnerMatcher).bind(ID))); in registerMatchers() 119 [](const ast_matchers::internal::Matcher<VarDecl> &InnerMatcher, in registerMatchers() argument 124 varDecl(unless(isImplicit()), InnerMatcher).bind(ID))); in registerMatchers()
|
D | UseAnyOfAllOfCheck.cpp | 23 InnerMatcher) { in AST_MATCHER_P() argument 37 return InnerMatcher.matches(**I, Finder, Builder); in AST_MATCHER_P()
|
D | ConvertMemberFunctionsToStatic.cpp | 54 ast_matchers::internal::Matcher<CXXMethodDecl>, InnerMatcher) { in AST_MATCHER_P() argument 55 return InnerMatcher.matches(*Node.getCanonicalDecl(), Finder, Builder); in AST_MATCHER_P()
|
D | MakeMemberFunctionConstCheck.cpp | 48 ast_matchers::internal::Matcher<CXXMethodDecl>, InnerMatcher) { in AST_MATCHER_P() argument 49 return InnerMatcher.matches(*Node.getCanonicalDecl(), Finder, Builder); in AST_MATCHER_P()
|
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
D | SizeofExpressionCheck.cpp | 27 ast_matchers::internal::Matcher<Expr>, InnerMatcher) { in AST_MATCHER_P2() argument 32 if (InnerMatcher.matches(*E, Finder, Builder)) in AST_MATCHER_P2() 36 const auto M = hasSizeOfDescendant(Depth - 1, InnerMatcher); in AST_MATCHER_P2() 39 const auto M = hasSizeOfDescendant(Depth - 1, InnerMatcher); in AST_MATCHER_P2() 42 const auto LHS = hasSizeOfDescendant(Depth - 1, InnerMatcher); in AST_MATCHER_P2() 43 const auto RHS = hasSizeOfDescendant(Depth - 1, InnerMatcher); in AST_MATCHER_P2()
|
D | UndelegatedConstructorCheck.cpp | 21 ast_matchers::internal::Matcher<Stmt>, InnerMatcher) { in AST_MATCHER_P() argument 37 return InnerMatcher.matches(*E, Finder, Builder); in AST_MATCHER_P()
|
D | UnusedReturnValueCheck.cpp | 27 InnerMatcher) { in AST_MATCHER_P() argument 29 return InnerMatcher.matches(InstantiatedFrom ? *InstantiatedFrom : Node, in AST_MATCHER_P()
|
/external/googletest/googlemock/include/gmock/ |
D | gmock-matchers.h | 1224 template <typename InnerMatcher> 1227 explicit NotMatcher(InnerMatcher matcher) : matcher_(matcher) {} 1237 InnerMatcher matcher_; 1817 template <typename InnerMatcher> 1820 explicit PointeeMatcher(const InnerMatcher& matcher) : matcher_(matcher) {} 1844 explicit Impl(const InnerMatcher& matcher) 1869 const InnerMatcher matcher_; 1876 template <typename InnerMatcher> 1879 explicit PointerMatcher(const InnerMatcher& matcher) : matcher_(matcher) {} 1903 explicit Impl(const InnerMatcher& matcher) [all …]
|
/external/llvm-project/llvm/utils/unittest/googlemock/include/gmock/ |
D | gmock-generated-matchers.h | 221 template <typename InnerMatcher> 222 explicit ArgsMatcherImpl(const InnerMatcher& inner_matcher) in ArgsMatcherImpl() 280 template <class InnerMatcher, int k0 = -1, int k1 = -1, int k2 = -1, 285 explicit ArgsMatcher(const InnerMatcher& inner_matcher) in ArgsMatcher() 295 const InnerMatcher inner_matcher_; 481 template <typename InnerMatcher> 482 inline internal::ArgsMatcher<InnerMatcher> 483 Args(const InnerMatcher& matcher) { in Args() 484 return internal::ArgsMatcher<InnerMatcher>(matcher); in Args() 487 template <int k1, typename InnerMatcher> [all …]
|
D | gmock-matchers.h | 1471 template <typename InnerMatcher> 1474 explicit NotMatcher(InnerMatcher matcher) : matcher_(matcher) {} 1484 InnerMatcher matcher_; 2044 template <typename InnerMatcher> 2047 explicit PointeeMatcher(const InnerMatcher& matcher) : matcher_(matcher) {} 2070 explicit Impl(const InnerMatcher& matcher) 2098 const InnerMatcher matcher_; 2813 template <typename InnerMatcher> 2814 explicit QuantifierMatcherImpl(InnerMatcher inner_matcher) 2852 template <typename InnerMatcher> [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
D | AvoidCArraysCheck.cpp | 23 InnerMatcher) { in AST_MATCHER_P() argument 26 InnerMatcher.matches(*TypeNode, Finder, Builder); in AST_MATCHER_P()
|
/external/llvm-project/clang-tools-extra/clang-tidy/performance/ |
D | TriviallyDestructibleCheck.cpp | 27 AST_MATCHER_P(CXXRecordDecl, hasBase, Matcher<QualType>, InnerMatcher) { in AST_MATCHER_P() argument 30 if (InnerMatcher.matches(BaseType, Finder, Builder)) in AST_MATCHER_P()
|
/external/llvm-project/clang-tools-extra/clang-tidy/abseil/ |
D | StrCatAppendCheck.cpp | 23 InnerMatcher) { in AST_MATCHER_P() argument 36 return InnerMatcher.matches(*E, Finder, Builder); in AST_MATCHER_P()
|
/external/llvm-project/clang/lib/Tooling/Transformer/ |
D | RewriteRule.cpp | 177 const ast_matchers::internal::Matcher<T> InnerMatcher; member in __anon23c971980611::BindingsMatcher 181 ast_matchers::internal::Matcher<T> InnerMatcher) in BindingsMatcher() argument 182 : Nodes(std::move(Nodes)), InnerMatcher(std::move(InnerMatcher)) {} in BindingsMatcher() 190 if (InnerMatcher.matches(Node, Finder, &Result)) { in matches()
|