13#ifndef LLVM_CLANG_LIB_INTERPRETER_INCREMENTALPARSER_H
14#define LLVM_CLANG_LIB_INTERPRETER_INCREMENTALPARSER_H
16#include "llvm/ADT/StringRef.h"
17#include "llvm/Support/Error.h"
25class CompilerInstance;
28class TranslationUnitDecl;
39 std::unique_ptr<Parser>
P;
ASTConsumer - This is an abstract interface that should be implemented by clients that read ASTs.
CompilerInstance - Helper class for managing a single instance of the Clang compiler.
Provides support for incremental compilation.
virtual ~IncrementalParser()
unsigned InputCount
Counts the number of direct user input lines that have been parsed.
void CleanUpPTU(TranslationUnitDecl *MostRecentTU)
virtual llvm::Expected< TranslationUnitDecl * > Parse(llvm::StringRef Input)
Parses incremental input by creating an in-memory file.
std::unique_ptr< Parser > P
Parser.
ASTConsumer * Consumer
Consumer to process the produced top level decls. Owned by Act.
Sema & S
The Sema performing the incremental compilation.
Sema - This implements semantic analysis and AST building for C.
The top declaration context.
The JSON file list parser is used to communicate input to InstallAPI.