update filed name in ParsedAST.

This commit is contained in:
ykiko
2024-08-31 22:03:56 +08:00
parent 65b9434965
commit ab24d4b3a3
5 changed files with 23 additions and 25 deletions

View File

@@ -5,15 +5,16 @@
namespace clice {
struct ParsedAST {
clang::FileManager& fm;
clang::Preprocessor& pp;
clang::SourceManager& sm;
clang::ASTContext& context;
clang::syntax::TokenBuffer tb;
clang::TranslationUnitDecl* tu;
clang::Preprocessor& preproc;
clang::FileManager& fileManager;
clang::SourceManager& sourceManager;
clang::syntax::TokenBuffer tokenBuffer;
std::unique_ptr<clang::FrontendAction> action;
std::unique_ptr<clang::CompilerInstance> instance;
clang::TranslationUnitDecl* tuDecl;
static std::unique_ptr<ParsedAST>
build(llvm::StringRef filename, llvm::StringRef content, std::vector<const char*>& args, Preamble* preamble);
};