clang 19.0.0git
Public Member Functions | List of all members
clang::tooling::ASTSrcLocProcessor Class Reference

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/Tooling/DumpTool/ASTSrcLocProcessor.h"

Inheritance diagram for clang::tooling::ASTSrcLocProcessor:
Inheritance graph

Public Member Functions

 ASTSrcLocProcessor (StringRef JsonPath)
std::unique_ptr< ASTConsumercreateASTConsumer (CompilerInstance &Compiler, StringRef File)
void generate ()
void generateEmpty ()
- Public Member Functions inherited from clang::ast_matchers::MatchFinder::MatchCallback
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< TraversalKindgetCheckTraversalKind () const
 TraversalKind to use while matching and processing the result nodes.

Detailed Description

Definition at line 25 of file ASTSrcLocProcessor.h.

Constructor & Destructor Documentation

◆ ASTSrcLocProcessor()

ASTSrcLocProcessor::ASTSrcLocProcessor ( StringRef  JsonPath)

Member Function Documentation

◆ createASTConsumer()

std::unique_ptr< clang::ASTConsumer > ASTSrcLocProcessor::createASTConsumer ( clang::CompilerInstance Compiler,
StringRef  File 

Definition at line 47 of file ASTSrcLocProcessor.cpp.

Referenced by ASTSrcLocGenerationAction::CreateASTConsumer().

◆ generate()

void ASTSrcLocProcessor::generate ( )

Definition at line 135 of file ASTSrcLocProcessor.cpp.

References toJSON(), and WriteJSON().

Referenced by ASTSrcLocGenerationAction::ExecuteAction().

◆ generateEmpty()

void ASTSrcLocProcessor::generateEmpty ( )

Definition at line 140 of file ASTSrcLocProcessor.cpp.

References WriteJSON().

Referenced by ASTSrcLocGenerationAction::ExecuteAction().

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