clang 19.0.0git
Classes | Namespaces | Functions
ASTMatchFinder.h File Reference
#include "clang/ASTMatchers/ASTMatchers.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/Support/Timer.h"
#include <optional>

Go to the source code of this file.

Classes

class  clang::ast_matchers::MatchFinder
 A class to allow finding matches over the Clang AST. More...
 
struct  clang::ast_matchers::MatchFinder::MatchResult
 Contains all information for a given match. More...
 
class  clang::ast_matchers::MatchFinder::MatchCallback
 Called when the Match registered for it was successfully found in the AST. More...
 
class  clang::ast_matchers::MatchFinder::ParsingDoneTestCallback
 Called when parsing is finished. Intended for testing only. More...
 
struct  clang::ast_matchers::MatchFinder::MatchFinderOptions
 
struct  clang::ast_matchers::MatchFinder::MatchFinderOptions::Profiling
 
struct  clang::ast_matchers::MatchFinder::MatchersByType
 For each Matcher<> a MatchCallback that will be called when it matches. More...
 
class  clang::ast_matchers::internal::CollectMatchesCallback
 

Namespaces

namespace  clang
 The JSON file list parser is used to communicate input to InstallAPI.
 
namespace  clang::ast_matchers
 
namespace  clang::ast_matchers::internal
 

Functions

template<typename MatcherT >
SmallVector< BoundNodes, 1 > clang::ast_matchers::match (MatcherT Matcher, ASTContext &Context)
 Returns the results of matching Matcher on the translation unit of Context and collects the BoundNodes of all callback invocations.
 
template<typename NodeT >
const NodeT * clang::ast_matchers::selectFirst (StringRef BoundTo, const SmallVectorImpl< BoundNodes > &Results)
 Returns the first result of type NodeT bound to BoundTo.
 
SmallVector< BoundNodes, 1 > clang::ast_matchers::matchDynamic (internal::DynTypedMatcher Matcher, const DynTypedNode &Node, ASTContext &Context)
 
template<typename NodeT >
SmallVector< BoundNodes, 1 > clang::ast_matchers::matchDynamic (internal::DynTypedMatcher Matcher, const NodeT &Node, ASTContext &Context)
 
SmallVector< BoundNodes, 1 > clang::ast_matchers::matchDynamic (internal::DynTypedMatcher Matcher, ASTContext &Context)
 
template<typename MatcherT , typename NodeT >
SmallVector< BoundNodes, 1 > clang::ast_matchers::match (MatcherT Matcher, const NodeT &Node, ASTContext &Context)
 Returns the results of matching Matcher on Node.
 
template<typename MatcherT >
SmallVector< BoundNodes, 1 > clang::ast_matchers::match (MatcherT Matcher, const DynTypedNode &Node, ASTContext &Context)