clang
8.0.0
|
Called when the Match registered for it was successfully found in the AST. More...
#include "clang/ASTMatchers/ASTMatchFinder.h"
Public Member Functions | |
virtual | ~MatchCallback () |
virtual void | run (const MatchResult &Result)=0 |
Called on every match by the MatchFinder . More... | |
virtual void | onStartOfTranslationUnit () |
Called at the start of each translation unit. More... | |
virtual void | onEndOfTranslationUnit () |
Called at the end of each translation unit. More... | |
virtual StringRef | getID () const |
An id used to group the matchers. More... | |
Called when the Match registered for it was successfully found in the AST.
Definition at line 92 of file ASTMatchFinder.h.
|
virtual |
Definition at line 945 of file ASTMatchFinder.cpp.
|
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 1046 of file ASTMatchFinder.cpp.
|
inlinevirtual |
Called at the end of each translation unit.
Optionally override to do per translation unit tasks.
Definition at line 107 of file ASTMatchFinder.h.
References llvm::getID().
|
inlinevirtual |
Called at the start of each translation unit.
Optionally override to do per translation unit tasks.
Definition at line 102 of file ASTMatchFinder.h.
|
pure virtual |
Called on every match by the MatchFinder
.
Implemented in clang::ast_matchers::internal::CollectMatchesCallback, clang::tooling::ReplaceIfStmtWithItsBody, clang::tooling::ReplaceStmtWithStmt, clang::tooling::ReplaceNodeWithTemplate, and clang::tooling::ReplaceStmtWithText.