clang 22.0.0git
clang::ast_matchers::MatchFinder::MatchResult Struct Reference

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

#include "clang/ASTMatchers/ASTMatchFinder.h"

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 75 of file ASTMatchFinder.h.

Constructor & Destructor Documentation

โ—† MatchResult()

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

Definition at line 1657 of file ASTMatchFinder.cpp.

References Context, Nodes, and SourceManager.

Member Data Documentation

โ—† Context

clang::ASTContext* const clang::ast_matchers::MatchFinder::MatchResult::Context

Utilities for interpreting the matched AST structures.

Definition at line 85 of file ASTMatchFinder.h.

Referenced by MatchResult().

โ—† Nodes

const BoundNodes clang::ast_matchers::MatchFinder::MatchResult::Nodes

Contains the nodes bound on the current match.

This allows user code to easily extract matched AST nodes.

Definition at line 81 of file ASTMatchFinder.h.

Referenced by MatchResult().

โ—† SourceManager

clang::SourceManager* const clang::ast_matchers::MatchFinder::MatchResult::SourceManager

Definition at line 86 of file ASTMatchFinder.h.

Referenced by MatchResult().


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