clang API Documentation
Called when the Match registered for it was successfully found in the AST. More...
#include <ASTMatchFinder.h>
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. |
Called when the Match registered for it was successfully found in the AST.
Definition at line 91 of file ASTMatchFinder.h.
Definition at line 848 of file ASTMatchFinder.cpp.
StringRef clang::ast_matchers::MatchFinder::MatchCallback::getID | ( | ) | const [virtual] |
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.
virtual void clang::ast_matchers::MatchFinder::MatchCallback::onEndOfTranslationUnit | ( | ) | [inline, virtual] |
Called at the end of each translation unit.
Optionally override to do per translation unit tasks.
Definition at line 106 of file ASTMatchFinder.h.
virtual void clang::ast_matchers::MatchFinder::MatchCallback::onStartOfTranslationUnit | ( | ) | [inline, virtual] |
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] |
Called on every match by the MatchFinder
.
Implemented in clang::ast_matchers::internal::CollectMatchesCallback, clang::tooling::ReplaceIfStmtWithItsBody, clang::tooling::ReplaceStmtWithStmt, and clang::tooling::ReplaceStmtWithText.