clang API Documentation

Public Member Functions | Public Attributes
clang::ast_matchers::MatchFinder::MatchResult Struct Reference

Contains all information for a given match. More...

#include <ASTMatchFinder.h>

Collaboration diagram for clang::ast_matchers::MatchFinder::MatchResult:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MatchResult (const BoundNodes &Nodes, clang::ASTContext *Context)

Public Attributes

const BoundNodes Nodes
 Contains the nodes bound on the current match.
clang::ASTContext *const Context
 Utilities for interpreting the matched AST structures.
clang::SourceManager *const SourceManager

Detailed Description

Contains all information for a given match.

Every time a match is found, the MatchFinder will invoke the registered MatchCallback with a MatchResult containing information about the match.

Definition at line 74 of file ASTMatchFinder.h.


Constructor & Destructor Documentation

Definition at line 843 of file ASTMatchFinder.cpp.


Member Data Documentation

Utilities for interpreting the matched AST structures.

Definition at line 84 of file ASTMatchFinder.h.

Contains the nodes bound on the current match.

This allows user code to easily extract matched AST nodes.

Definition at line 80 of file ASTMatchFinder.h.

Referenced by clang::tooling::ReplaceStmtWithText::run(), clang::tooling::ReplaceStmtWithStmt::run(), clang::tooling::ReplaceIfStmtWithItsBody::run(), and clang::ast_matchers::internal::CollectMatchesCallback::run().


The documentation for this struct was generated from the following files: