llvm/clang/lib/Serialization/GeneratePCH.cpp

//===--- GeneratePCH.cpp - Sema Consumer for PCH Generation -----*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
//  This file defines the PCHGenerator, which as a SemaConsumer that generates
//  a PCH file.
//
//===----------------------------------------------------------------------===//

#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() {}