diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-21 05:43:35 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-21 05:43:35 +0000 |
| commit | dd5bbae055fd34ce2e12ef63f8a261c6b15dc83e (patch) | |
| tree | 757e367daacf92c50148eb42d7bda97ba33ed3fb /include/cps/CodeGen.h | |
| parent | c682f983b0dce3acba76d1f08719a26b9c52c5ec (diff) | |
feat(parser): parse TEMPLATE declarations, template ids and parameter packs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'include/cps/CodeGen.h')
| -rw-r--r-- | include/cps/CodeGen.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/cps/CodeGen.h b/include/cps/CodeGen.h index e6281c5..283c4b1 100644 --- a/include/cps/CodeGen.h +++ b/include/cps/CodeGen.h @@ -25,6 +25,7 @@ class MemoryHandler; class ExceptionHandler; class CastExprAST; class NewExprAST; +class TemplateDeclAST; class CodeGen { std::unique_ptr<llvm::LLVMContext> TheContext; @@ -35,6 +36,8 @@ class CodeGen { size_t CurrentUnit = 0; size_t MainUnit = 0; IdentifierMap<size_t> TypeOwners; + struct TemplateDefinition { TemplateDeclAST *Decl; size_t OwnerUnit; }; + IdentifierMap<std::vector<TemplateDefinition>> Templates; std::vector<IdentifierMap<SymbolInfo>> Exports; bool isVisible(size_t Owner) const; void selectUnit(size_t Unit); |
