#include "IncrementalParser.h"
#include "clang/AST/DeclContextInternals.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Interpreter/PartialTranslationUnit.h"
#include "clang/Parse/Parser.h"
#include "clang/Sema/Sema.h"
#include "llvm/Support/CrashRecoveryContext.h"
#include "llvm/Support/Error.h"
#include <sstream>
namespace clang {
IncrementalParser::IncrementalParser(CompilerInstance &Instance,
llvm::Error &Err)
: … { … }
IncrementalParser::~IncrementalParser() { … }
llvm::Expected<TranslationUnitDecl *>
IncrementalParser::ParseOrWrapTopLevelDecl() { … }
llvm::Expected<TranslationUnitDecl *>
IncrementalParser::Parse(llvm::StringRef input) { … }
void IncrementalParser::CleanUpPTU(TranslationUnitDecl *MostRecentTU) { … }
}