aboutsummaryrefslogtreecommitdiff
path: root/include/cps/FunctionAST.h
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-28 13:36:16 +0000
committer_ov4 <ov4@ov4.org>2026-10-28 13:36:16 +0000
commitb28384fed1ce638e8b00b72dba974e9fd7e55eb4 (patch)
treeb0b342b148c1d5b33197f7a59d0a7a7edb92af1c /include/cps/FunctionAST.h
parentcaa88a9b36d9e1dfae40ecb31aee05bc2891fa17 (diff)
feat(overload): support default return types
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'include/cps/FunctionAST.h')
-rw-r--r--include/cps/FunctionAST.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/cps/FunctionAST.h b/include/cps/FunctionAST.h
index 9188015..5280d58 100644
--- a/include/cps/FunctionAST.h
+++ b/include/cps/FunctionAST.h
@@ -35,6 +35,7 @@ class PrototypeAST {
std::string OwnerClass;
bool IsPublic;
bool IsVariadic = false;
+ bool IsDefaultReturn = false;
int Operator = 0;
public:
@@ -49,6 +50,8 @@ public:
const std::vector<ParamDecl> &getParams() const { return Params; }
const std::string &getReturnType() const { return ReturnType; }
bool isOverload() const { return IsOverload; }
+ bool isDefaultReturn() const { return IsDefaultReturn; }
+ void setDefaultReturn(bool V) { IsDefaultReturn = V; }
int getOperator() const { return Operator; }
void setOperator(int Op) { Operator = Op; }
bool isExternal() const { return IsExternal; }