#include "clang/Frontend/ASTUnit.h"
#include "clang/Frontend/CompilerInvocation.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Frontend/FrontendActions.h"
#include "clang/Frontend/FrontendOptions.h"
#include "clang/Lex/PreprocessorOptions.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/FileManager.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/Path.h"
#include "gtest/gtest.h"
usingnamespacellvm;
usingnamespaceclang;
namespace {
std::string Canonicalize(const Twine &Path) { … }
class ReadCountingInMemoryFileSystem : public vfs::InMemoryFileSystem
{ … };
class PCHPreambleTest : public ::testing::Test { … };
TEST_F(PCHPreambleTest, ReparseReusesPreambleWithUnsavedFileNotExistingOnDisk) { … }
TEST_F(PCHPreambleTest, ReparseReusesPreambleAfterUnsavedFileWasCreatedOnDisk) { … }
TEST_F(PCHPreambleTest,
ReparseReusesPreambleAfterUnsavedFileWasRemovedFromDisk) { … }
TEST_F(PCHPreambleTest, ReparseWithOverriddenFileDoesNotInvalidatePreamble) { … }
TEST_F(PCHPreambleTest, ParseWithBom) { … }
}