From 0d4e9292d85a169f881926556992d4ae12dcb6f4 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 17 Aug 2024 20:52:23 +0300 Subject: actually enable clang compilation and apply fixes --- include/ek/ast.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/ek/ast.h b/include/ek/ast.h index 53bc8d6..610efb6 100644 --- a/include/ek/ast.h +++ b/include/ek/ast.h @@ -291,6 +291,7 @@ static inline bool is_binop(struct ast *x) case AST_RSHIFT: return true; default: + break; }; return false; @@ -308,6 +309,7 @@ static inline bool is_opassign(struct ast *x) case AST_ASSIGN_RSHIFT: return true; default: + break; }; return false; } @@ -321,6 +323,7 @@ static inline bool is_unop(struct ast *x) case AST_NEG: return true; default: + break; } return false; @@ -337,6 +340,7 @@ static inline bool is_comparison(struct ast *x) case AST_EQ: return true; default: + break; } return false; @@ -351,6 +355,7 @@ static inline bool is_const(struct ast *x) case AST_CONST_BOOL: return true; default: + break; } return false; @@ -365,6 +370,7 @@ static inline bool is_primitive(struct type *t) case TYPE_PTR: return true; default: + break; } return false; -- cgit v1.3