Refactor TemplateResolver.

This commit is contained in:
ykiko
2024-11-12 22:12:55 +08:00
parent 511af1bd28
commit 258f8d8f1c
17 changed files with 637 additions and 423 deletions

View File

@@ -61,6 +61,7 @@ bool Compiler::applyPCM(llvm::StringRef filepath, llvm::StringRef name) {
void Compiler::buildAST() {
action = std::make_unique<clang::SyntaxOnlyAction>();
ExecuteAction();
m_Resolver = std::make_unique<TemplateResolver>(instance->getSema());
}
void Compiler::generatePCH(llvm::StringRef outpath, std::uint32_t bound, bool endAtStart) {