#include "clang/AST/ASTContext.h"
#include "clang/Frontend/FrontendDiagnostic.h"
#include "clang/Lex/HeaderSearch.h"
#include "clang/Lex/HeaderSearchOptions.h"
#include "clang/Lex/Preprocessor.h"
#include "clang/Sema/SemaConsumer.h"
#include "clang/Serialization/ASTWriter.h"
#include "llvm/Bitstream/BitstreamWriter.h"
usingnamespaceclang;
PCHGenerator::PCHGenerator(
Preprocessor &PP, InMemoryModuleCache &ModuleCache, StringRef OutputFile,
StringRef isysroot, std::shared_ptr<PCHBuffer> Buffer,
ArrayRef<std::shared_ptr<ModuleFileExtension>> Extensions,
bool AllowASTWithErrors, bool IncludeTimestamps,
bool BuildingImplicitModule, bool ShouldCacheASTInMemory,
bool GeneratingReducedBMI)
: … { … }
PCHGenerator::~PCHGenerator() { … }
Module *PCHGenerator::getEmittingModule(ASTContext &) { … }
void PCHGenerator::HandleTranslationUnit(ASTContext &Ctx) { … }
ASTMutationListener *PCHGenerator::GetASTMutationListener() { … }
ASTDeserializationListener *PCHGenerator::GetASTDeserializationListener() { … }
void PCHGenerator::anchor() { … }
CXX20ModulesGenerator::CXX20ModulesGenerator(Preprocessor &PP,
InMemoryModuleCache &ModuleCache,
StringRef OutputFile,
bool GeneratingReducedBMI)
: … { … }
Module *CXX20ModulesGenerator::getEmittingModule(ASTContext &Ctx) { … }
void CXX20ModulesGenerator::HandleTranslationUnit(ASTContext &Ctx) { … }
void CXX20ModulesGenerator::anchor() { … }
void ReducedBMIGenerator::anchor() { … }