aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-22 03:36:25 +0000
committer_ov4 <ov4@ov4.org>2026-10-22 03:58:26 +0000
commit0798836375047a051ad4bffa500e8e819fd51c5e (patch)
tree27c7e181512dd7aed187a173685bafa313588d79 /include
parentf5e6f11dc057d4cef59642efbcb502e002c13977 (diff)
refactor(codegen): extract FunctionGen prototype validation
Move the copy-constructor, operator, MAIN OVERLOAD and reserved, builtin, enum and type name checks at the start of emitPrototype into a private validatePrototype helper. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'include')
-rw-r--r--include/cps/FunctionGen.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/cps/FunctionGen.h b/include/cps/FunctionGen.h
index 95579c4..1b4a07a 100644
--- a/include/cps/FunctionGen.h
+++ b/include/cps/FunctionGen.h
@@ -86,6 +86,7 @@ private:
void createArgumentAllocas(llvm::Function *F, const std::vector<ParamDecl> &Params, bool IsMethod);
llvm::Type *getLLVMType(const std::string &TypeName);
+ bool validatePrototype(PrototypeAST *Proto);
llvm::Value *emitCall(const std::string &Callee, const std::vector<llvm::Value*> &Args);
public: