clang API Documentation

Public Member Functions
clang::ast_matchers::MatchFinder::MatchCallback Class Reference

Called when the Match registered for it was successfully found in the AST. More...

#include <ASTMatchFinder.h>

Inheritance diagram for clang::ast_matchers::MatchFinder::MatchCallback:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~MatchCallback ()
virtual void run (const MatchResult &Result)=0
 Called on every match by the MatchFinder.
virtual void onStartOfTranslationUnit ()
 Called at the start of each translation unit.
virtual void onEndOfTranslationUnit ()
 Called at the end of each translation unit.
virtual StringRef getID () const
 An id used to group the matchers.

Detailed Description

Called when the Match registered for it was successfully found in the AST.

Definition at line 91 of file ASTMatchFinder.h.


Constructor & Destructor Documentation

Definition at line 848 of file ASTMatchFinder.cpp.


Member Function Documentation

An id used to group the matchers.

This id is used, for example, for the profiling output. It defaults to "<unknown>".

Definition at line 940 of file ASTMatchFinder.cpp.

Called at the end of each translation unit.

Optionally override to do per translation unit tasks.

Definition at line 106 of file ASTMatchFinder.h.

Called at the start of each translation unit.

Optionally override to do per translation unit tasks.

Definition at line 101 of file ASTMatchFinder.h.

virtual void clang::ast_matchers::MatchFinder::MatchCallback::run ( const MatchResult Result) [pure virtual]

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