diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-01-01 14:33:48 +0200 | 
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-01-01 14:33:48 +0200 | 
| commit | 718784ca20b8cb49aec438daecc846f273971793 (patch) | |
| tree | 2a33e54ce63a33e4fe1aaeac8140ce9714c96cc3 /include | |
| parent | bf804fa1e18c717cec3944f5edea858a2f3a015d (diff) | |
| download | fwd-718784ca20b8cb49aec438daecc846f273971793.tar.gz fwd-718784ca20b8cb49aec438daecc846f273971793.zip | |
run formatter
Diffstat (limited to 'include')
| -rw-r--r-- | include/fwd/ast.h | 7 | ||||
| -rw-r--r-- | include/fwd/debug.h | 5 | 
2 files changed, 7 insertions, 5 deletions
| diff --git a/include/fwd/ast.h b/include/fwd/ast.h index 62766fb..bcf4171 100644 --- a/include/fwd/ast.h +++ b/include/fwd/ast.h @@ -31,7 +31,8 @@ struct src_loc {  struct ast;  enum type_kind { -	TYPE_ID = 1, TYPE_CONSTRUCT, TYPE_REF, TYPE_PTR, TYPE_CALLABLE, TYPE_VOID +	TYPE_ID = 1, TYPE_CONSTRUCT, TYPE_REF, TYPE_PTR, TYPE_CALLABLE, +	TYPE_VOID  };  struct type { @@ -117,8 +118,8 @@ enum ast_kind {  };  enum ast_flag { -	AST_FLAG_ANALYZED	= (1 << 0), -	AST_FLAG_PREANALYZIS	= (1 << 1), +	AST_FLAG_ANALYZED       = (1 << 0), +	AST_FLAG_PREANALYZIS    = (1 << 1),  };  struct ast { diff --git a/include/fwd/debug.h b/include/fwd/debug.h index cc20c83..0794650 100644 --- a/include/fwd/debug.h +++ b/include/fwd/debug.h @@ -93,7 +93,8 @@ void semantic_warn(struct scope *scope, struct ast *node, const char *fmt, ...);   * @param node AST node to print message with.   * @param fmt Format string. Follows standard printf() formatting.   */ -void semantic_error(struct scope *scope, struct ast *node, const char *fmt, ...); +void semantic_error(struct scope *scope, struct ast *node, const char *fmt, +                    ...);  void loc_error(struct scope *scope, struct src_loc loc, const char *fmt, ...); @@ -135,7 +136,7 @@ struct src_issue {  void src_issue(struct src_issue issue, const char *err_msg, ...);  void type_mismatch(struct scope *scope, struct ast *node, -		struct type *l, struct type *r); +                   struct type *l, struct type *r);  const char *type_str(struct type *t); | 
