Home
last modified time | relevance | path

Searched refs:ast_matchers (Results 1 – 25 of 50) sorted by relevance

12

/freebsd-head/contrib/llvm-project/clang/include/clang/ASTMatchers/
HDASTMatchersMacros.h58 return ::clang::ast_matchers::internal::MemoizedMatcher< \
97 : public ::clang::ast_matchers::internal::MatcherInterface<Type> { \
101 ::clang::ast_matchers::internal::ASTMatchFinder *Finder, \
102 ::clang::ast_matchers::internal::BoundNodesTreeBuilder \
106 inline ::clang::ast_matchers::internal::Matcher<Type> DefineMatcher() { \
107 return ::clang::ast_matchers::internal::makeMatcher( \
112 ::clang::ast_matchers::internal::ASTMatchFinder *Finder, \
113 ::clang::ast_matchers::internal::BoundNodesTreeBuilder *Builder) const
135 : public ::clang::ast_matchers::internal::MatcherInterface<Type> { \
141 ::clang::ast_matchers::internal::ASTMatchFinder *Finder, \
[all …]
HDGtestMatchers.h22 namespace ast_matchers {
/freebsd-head/contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/
HDMatchSwitch.h65 using MatchSwitchMatcher = ast_matchers::internal::Matcher<T>;
69 const T *, const ast_matchers::MatchFinder::MatchResult &, State &)>;
112 const ast_matchers::MatchFinder::MatchResult &R, in CaseOf()
120 auto Results = ast_matchers::matchDynamic(Matcher, Node, Context); in Build()
133 ast_matchers::MatchFinder::MatchResult(Results[0], &Context), S); in Build()
141 ast_matchers::internal::DynTypedMatcher BuildMatcher() { in BuildMatcher()
142 using ast_matchers::anything; in BuildMatcher()
143 using ast_matchers::stmt; in BuildMatcher()
144 using ast_matchers::unless; in BuildMatcher()
145 using ast_matchers::internal::DynTypedMatcher; in BuildMatcher()
[all …]
/freebsd-head/contrib/llvm-project/clang/include/clang/Tooling/Transformer/
HDRewriteRule.h114 AnyGenerator Metadata = [](const ast_matchers::MatchFinder::MatchResult &)
247 const ast_matchers::MatchFinder::MatchResult &R) -> llvm::Any { in withMetadata()
284 ast_matchers::internal::DynTypedMatcher Matcher;
305 RewriteRule makeRule(ast_matchers::internal::DynTypedMatcher M,
309 RewriteRuleWith<MetadataT> makeRule(ast_matchers::internal::DynTypedMatcher M,
328 RewriteRule makeRule(ast_matchers::internal::DynTypedMatcher M,
334 RewriteRule makeRule(ast_matchers::internal::DynTypedMatcher M,
341 RewriteRuleWith<MetadataT> makeRule(ast_matchers::internal::DynTypedMatcher M,
350 RewriteRuleWith<MetadataT> makeRule(ast_matchers::internal::DynTypedMatcher M,
494 const ast_matchers::MatchFinder::MatchResult &Result);
[all …]
HDTransformer.h29 void onMatch(const ast_matchers::MatchFinder::MatchResult &Result);
31 virtual std::vector<ast_matchers::internal::DynTypedMatcher>
39 const ast_matchers::MatchFinder::MatchResult &Result);
43 onMatchImpl(const ast_matchers::MatchFinder::MatchResult &Result) = 0;
63 class Transformer : public ast_matchers::MatchFinder::MatchCallback {
104 void registerMatchers(ast_matchers::MatchFinder *MatchFinder);
108 void run(const ast_matchers::MatchFinder::MatchResult &Result) override;
121 const ast_matchers::MatchFinder::MatchResult &Match,
161 void onMatchImpl(const ast_matchers::MatchFinder::MatchResult &Result) final {
193 std::vector<ast_matchers::internal::DynTypedMatcher>
HDMatchConsumer.h35 std::function<Expected<T>(const ast_matchers::MatchFinder::MatchResult &)>;
49 return [=](const ast_matchers::MatchFinder::MatchResult &Result) { in ifBound()
72 virtual llvm::Error eval(const ast_matchers::MatchFinder::MatchResult &Match,
77 llvm::Expected<T> eval(const ast_matchers::MatchFinder::MatchResult &R) const;
95 const ast_matchers::MatchFinder::MatchResult &R) const { in eval()
HDRangeSelector.h30 return [R](const ast_matchers::MatchFinder::MatchResult &) in charRange()
/freebsd-head/contrib/llvm-project/clang/lib/Tooling/Transformer/
HDRewriteRule.cpp27 using ast_matchers::MatchFinder;
28 using ast_matchers::internal::DynTypedMatcher;
147 llvm::Error eval(const ast_matchers::MatchFinder::MatchResult &, in eval()
201 RewriteRule transformer::makeRule(ast_matchers::internal::DynTypedMatcher M, in makeRule()
212 class BindingsMatcher : public ast_matchers::internal::MatcherInterface<T> {
213 ast_matchers::BoundNodes Nodes;
214 const ast_matchers::internal::Matcher<T> InnerMatcher;
217 explicit BindingsMatcher(ast_matchers::BoundNodes Nodes, in BindingsMatcher()
218 ast_matchers::internal::Matcher<T> InnerMatcher) in BindingsMatcher()
222 const T &Node, ast_matchers::internal::ASTMatchFinder *Finder, in matches()
[all …]
HDTransformer.cpp22 using ::clang::ast_matchers::MatchFinder;
27 const ast_matchers::MatchFinder::MatchResult &Result) { in onMatch()
/freebsd-head/contrib/llvm-project/clang/include/clang/Tooling/
HDRefactoringCallbacks.h40 class RefactoringCallback : public ast_matchers::MatchFinder::MatchCallback {
64 void addDynamicMatcher(const ast_matchers::internal::DynTypedMatcher &Matcher,
72 ast_matchers::MatchFinder MatchFinder;
81 void run(const ast_matchers::MatchFinder::MatchResult &Result) override;
98 void run(const ast_matchers::MatchFinder::MatchResult &Result) override;
116 void run(const ast_matchers::MatchFinder::MatchResult &Result) override;
129 void run(const ast_matchers::MatchFinder::MatchResult &Result) override;
/freebsd-head/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
HDMarshallers.cpp63 clang::ast_matchers::dynamic::internal::ArgTypeTraits<
75 clang::ast_matchers::dynamic::internal::ArgTypeTraits<
87 clang::ast_matchers::dynamic::internal::ArgTypeTraits<
100 clang::ast_matchers::dynamic::internal::ArgTypeTraits<
138 clang::ast_matchers::dynamic::internal::ArgTypeTraits<
154 clang::ast_matchers::dynamic::internal::ArgTypeTraits<
HDMarshallers.h48 namespace ast_matchers {
82 template <class T> struct ArgTypeTraits<ast_matchers::internal::Matcher<T>> {
90 static ast_matchers::internal::Matcher<T> get(const VariantValue &Value) {
427 ast_matchers::internal::EmptyTypeList) {}
432 Out.push_back(ast_matchers::internal::Matcher<typename TypeList::head>(Poly));
465 buildReturnTypeVectorFromTypeList<ast_matchers::internal::EmptyTypeList>(
476 struct BuildReturnTypeVector<ast_matchers::internal::Matcher<T>> {
483 struct BuildReturnTypeVector<ast_matchers::internal::BindableMatcher<T>> {
551 ast_matchers::internal::VariadicFunction<ResultT, ArgT, F> Func,
593 ast_matchers::internal::VariadicDynCastAllOfMatcher<BaseT, DerivedT> Func,
[all …]
HDRegistry.cpp35 namespace ast_matchers { namespace
69 ::clang::ast_matchers::name, #name));
76 static_cast<::clang::ast_matchers::name##_Type##Id>( \
77 ::clang::ast_matchers::name)
/freebsd-head/contrib/llvm-project/clang/lib/Analysis/
HDExprMutationAnalyzer.cpp16 using namespace ast_matchers;
100 ast_matchers::internal::Matcher<DeclStmt>, InnerMatcher) { in AST_MATCHER_P()
117 AST_MATCHER_P(InitListExpr, hasAnyInit, ast_matchers::internal::Matcher<Expr>, in AST_MATCHER_P()
120 ast_matchers::internal::BoundNodesTreeBuilder Result(*Builder); in AST_MATCHER_P()
129 const ast_matchers::internal::VariadicDynCastAllOfMatcher<Stmt, CXXTypeidExpr>
151 ast_matchers::internal::Matcher<Expr>, InnerMatcher) { in AST_MATCHER_P()
158 ast_matchers::internal::Matcher<T>
159 findFirst(const ast_matchers::internal::Matcher<T> &Matcher) { in findFirst()
191 const Stmt *tryEachMatch(ArrayRef<ast_matchers::BoundNodes> Matches, in tryEachMatch()
322 ArrayRef<ast_matchers::BoundNodes> Matches) { in findExprPointeeMutation()
[all …]
/freebsd-head/contrib/llvm-project/clang/include/clang/Analysis/Analyses/
HDExprMutationAnalyzer.h63 const Stmt *findExprMutation(ArrayRef<ast_matchers::BoundNodes> Matches);
64 const Stmt *findDeclMutation(ArrayRef<ast_matchers::BoundNodes> Matches);
66 findExprPointeeMutation(ArrayRef<ast_matchers::BoundNodes> Matches);
68 findDeclPointeeMutation(ArrayRef<ast_matchers::BoundNodes> Matches);
/freebsd-head/contrib/llvm-project/clang/lib/Tooling/
HDRefactoringCallbacks.cpp32 const ast_matchers::internal::DynTypedMatcher &Matcher, in addDynamicMatcher()
89 const ast_matchers::MatchFinder::MatchResult &Result) { in run()
107 const ast_matchers::MatchFinder::MatchResult &Result) { in run()
127 const ast_matchers::MatchFinder::MatchResult &Result) { in run()
199 const ast_matchers::MatchFinder::MatchResult &Result) { in run()
/freebsd-head/contrib/llvm-project/clang/include/clang/ASTMatchers/Dynamic/
HDVariantValue.h28 namespace ast_matchers {
90 using ast_matchers::internal::DynTypedMatcher;
211 ast_matchers::internal::Matcher<T> getTypedMatcher() const { in getTypedMatcher()
HDRegistry.h29 namespace ast_matchers {
HDDiagnostics.h27 namespace ast_matchers {
/freebsd-head/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
HDOSObjectCStyleCast.cpp24 using namespace ast_matchers;
38 namespace ast_matchers { namespace
HDPointerIterationChecker.cpp21 using namespace ast_matchers;
HDPointerSortingChecker.cpp21 using namespace ast_matchers;
/freebsd-head/contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/Models/
HDUncheckedOptionalAccessModel.h51 static ast_matchers::DeclarationMatcher optionalClassDecl();
/freebsd-head/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/Models/
HDUncheckedOptionalAccessModel.cpp86 using namespace ::clang::ast_matchers;
175 ast_matchers::internal::Matcher<QualType>, InnerMatcher) { in AST_MATCHER_P()
180 ast_matchers::internal::Matcher<NamedDecl> matcher, in isOptionalMemberCallWithNameMatcher()
280 auto ComparesToSame = [](ast_matchers::internal::Matcher<Stmt> Arg) { in isValueOrNotEqX()
913 ast_matchers::DeclarationMatcher
/freebsd-head/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
HDLoopWidening.cpp23 using namespace clang::ast_matchers;

12