clang  6.0.0svn
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 dependency graph for ASTMatchFinder.h:
This graph shows which files directly or indirectly include this file:

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

 clang
 Dataflow Directional Tag Classes.
 
 clang::ast_matchers
 
 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. More...
 
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. More...
 
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. More...
 
template<typename MatcherT >
SmallVector< BoundNodes, 1 > clang::ast_matchers::match (MatcherT Matcher, const ast_type_traits::DynTypedNode &Node, ASTContext &Context)