clang 20.0.0git
Public Member Functions | Protected Attributes | List of all members
clang::IncrementalParser Class Reference

Provides support for incremental compilation. More...

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/Interpreter/IncrementalParser.h"

Inheritance diagram for clang::IncrementalParser:
Inheritance graph
[legend]

Public Member Functions

 IncrementalParser (CompilerInstance &Instance, llvm::Error &Err)
 
virtual ~IncrementalParser ()
 
virtual llvm::Expected< TranslationUnitDecl * > Parse (llvm::StringRef Input)
 Parses incremental input by creating an in-memory file.
 
void CleanUpPTU (TranslationUnitDecl *MostRecentTU)
 

Protected Attributes

SemaS
 The Sema performing the incremental compilation.
 
std::unique_ptr< ParserP
 Parser.
 
ASTConsumerConsumer = nullptr
 Consumer to process the produced top level decls. Owned by Act.
 
unsigned InputCount = 0
 Counts the number of direct user input lines that have been parsed.
 

Detailed Description

Provides support for incremental compilation.

Keeps track of the state changes between the subsequent incremental input.

Definition at line 33 of file IncrementalParser.h.

Constructor & Destructor Documentation

◆ IncrementalParser()

clang::IncrementalParser::IncrementalParser ( CompilerInstance Instance,
llvm::Error &  Err 
)

◆ ~IncrementalParser()

clang::IncrementalParser::~IncrementalParser ( )
virtual

Definition at line 38 of file IncrementalParser.cpp.

References P.

Member Function Documentation

◆ CleanUpPTU()

void clang::IncrementalParser::CleanUpPTU ( TranslationUnitDecl MostRecentTU)

◆ Parse()

llvm::Expected< TranslationUnitDecl * > clang::IncrementalParser::Parse ( llvm::StringRef  Input)
virtual

Member Data Documentation

◆ Consumer

ASTConsumer* clang::IncrementalParser::Consumer = nullptr
protected

Consumer to process the produced top level decls. Owned by Act.

Definition at line 42 of file IncrementalParser.h.

Referenced by IncrementalParser().

◆ InputCount

unsigned clang::IncrementalParser::InputCount = 0
protected

Counts the number of direct user input lines that have been parsed.

Definition at line 45 of file IncrementalParser.h.

Referenced by Parse().

◆ P

std::unique_ptr<Parser> clang::IncrementalParser::P
protected

Parser.

Definition at line 39 of file IncrementalParser.h.

Referenced by IncrementalParser(), and ~IncrementalParser().

◆ S

Sema& clang::IncrementalParser::S
protected

The Sema performing the incremental compilation.

Definition at line 36 of file IncrementalParser.h.

Referenced by CleanUpPTU(), IncrementalParser(), and Parse().


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