#include "clang/Serialization/PCHContainerOperations.h"
#include "clang/AST/ASTConsumer.h"
#include "llvm/Support/raw_ostream.h"
#include <utility>
usingnamespaceclang;
PCHContainerWriter::~PCHContainerWriter() { … }
PCHContainerReader::~PCHContainerReader() { … }
namespace {
class RawPCHContainerGenerator : public ASTConsumer { … };
}
std::unique_ptr<ASTConsumer> RawPCHContainerWriter::CreatePCHContainerGenerator(
CompilerInstance &CI, const std::string &MainFileName,
const std::string &OutputFileName, std::unique_ptr<llvm::raw_pwrite_stream> OS,
std::shared_ptr<PCHBuffer> Buffer) const { … }
ArrayRef<llvm::StringRef> RawPCHContainerReader::getFormats() const { … }
StringRef
RawPCHContainerReader::ExtractPCH(llvm::MemoryBufferRef Buffer) const { … }
PCHContainerOperations::PCHContainerOperations() { … }