clang API Documentation

Classes | Namespaces | Functions
ASTMatchFinder.h File Reference
#include "clang/ASTMatchers/ASTMatchers.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

namespace  clang
namespace  clang::ast_matchers
namespace  clang::ast_matchers::internal

Functions

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.
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 ast_type_traits::DynTypedNode &Node, ASTContext &Context)