clang  14.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
[legend]
Collaboration diagram for clang::tooling::ASTSrcLocProcessor:
Collaboration graph
[legend]

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 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...
 

Detailed Description

Definition at line 25 of file ASTSrcLocProcessor.h.

Constructor & Destructor Documentation

◆ ASTSrcLocProcessor()

ASTSrcLocProcessor::ASTSrcLocProcessor ( StringRef  JsonPath)
explicit

Member Function Documentation

◆ createASTConsumer()

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

Definition at line 47 of file ASTSrcLocProcessor.cpp.

◆ generate()

void ASTSrcLocProcessor::generate ( )

Definition at line 135 of file ASTSrcLocProcessor.cpp.

References toJSON(), and WriteJSON().

◆ generateEmpty()

void ASTSrcLocProcessor::generateEmpty ( )

Definition at line 140 of file ASTSrcLocProcessor.cpp.

References WriteJSON().


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