clang 17.0.0git
|
Public Member Functions | |
ASTSrcLocProcessor (StringRef JsonPath) | |
std::unique_ptr< ASTConsumer > | createASTConsumer (CompilerInstance &Compiler, StringRef File) |
void | generate () |
void | generateEmpty () |
![]() | |
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. | |
virtual std::optional< TraversalKind > | getCheckTraversalKind () const |
TraversalKind to use while matching and processing the result nodes. | |
Definition at line 25 of file ASTSrcLocProcessor.h.
|
explicit |
Definition at line 19 of file ASTSrcLocProcessor.cpp.
References clang::ast_matchers::cxxRecordDecl, clang::ast_matchers::hasAnyName, clang::ast_matchers::namedDecl, and clang::ast_matchers::optionally.
std::unique_ptr< clang::ASTConsumer > ASTSrcLocProcessor::createASTConsumer | ( | clang::CompilerInstance & | Compiler, |
StringRef | File | ||
) |
Definition at line 47 of file ASTSrcLocProcessor.cpp.
Referenced by ASTSrcLocGenerationAction::CreateASTConsumer().
void ASTSrcLocProcessor::generate | ( | ) |
Definition at line 135 of file ASTSrcLocProcessor.cpp.
References toJSON(), and WriteJSON().
Referenced by ASTSrcLocGenerationAction::ExecuteAction().
void ASTSrcLocProcessor::generateEmpty | ( | ) |
Definition at line 140 of file ASTSrcLocProcessor.cpp.
References WriteJSON().
Referenced by ASTSrcLocGenerationAction::ExecuteAction().