Files
clice/include/AST/Preamble.h
2024-08-30 21:45:55 +08:00

18 lines
460 B
C++

#pragma once
#include "Diagnostic.h"
namespace clice {
/// Represents the preamble of a translation unit.
/// We build preamble for the translation after first edit.
/// The preamble is used to speed up the reparse of the translation unit.
struct Preamble {
clang::PrecompiledPreamble data;
static std::unique_ptr<Preamble>
build(llvm::StringRef filename, llvm::StringRef content, std::vector<const char*>& args);
};
} // namespace clice