From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wG2LGfBYCWdhDAEAe85BDQ:P1 (envelope-from ) for ; Fri, 11 Oct 2024 18:57:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id wG2LGfBYCWdhDAEAe85BDQ (envelope-from ) for ; Fri, 11 Oct 2024 18:57:20 +0200 X-Envelope-To: patches@johnnyrichard.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lists.sr.ht header.s=20240113 header.b=M82Qwa8C; dkim=pass header.d=maniero.me header.s=hostingermail1 header.b=rfKIVo7r; dmarc=pass (policy=none) header.from=maniero.me; arc=pass ("mailchannels.net:s=arc-2022:i=1"); spf=pass (aspmx1.migadu.com: domain of lists@sr.ht designates 46.23.81.152 as permitted sender) smtp.mailfrom=lists@sr.ht ARC-Seal: i=2; s=key1; d=johnnyrichard.com; t=1728665840; a=rsa-sha256; cv=pass; b=XMwhGJJiIqMMVghEBtY5E4rVZUXovF8c5zvh51kO7HCWpOncbO7CAv8PpYt+q2J/UHXKNw n/brYylhTyhEs0NLSUKfDlLpC657HKGSMZ0N/MhpI3CnVxGfZANBfPe4rqzzfjGb4sGBHZ zyt/tu4IhSqfc3FWRXDHQ8PFa5jEC0kMO/VJLpJrekuMZlhkf81iS9DwU8qGoKWdACo9SZ aD5XYqQ010jJGLQ4Tsxcaho6WNC8rUFxTW26CvgEujXbXZITHvhjBgYu5q9x/sa2W0xWXw p2QJ++411YZDOd00idPp0HVsVgQfE8+qGeo+ZOd5cI4R2WlQ+dpY+8GFkJZOJQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=lists.sr.ht header.s=20240113 header.b=M82Qwa8C; dkim=pass header.d=maniero.me header.s=hostingermail1 header.b=rfKIVo7r; dmarc=pass (policy=none) header.from=maniero.me; arc=pass ("mailchannels.net:s=arc-2022:i=1"); spf=pass (aspmx1.migadu.com: domain of lists@sr.ht designates 46.23.81.152 as permitted sender) smtp.mailfrom=lists@sr.ht ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=johnnyrichard.com; s=key1; t=1728665840; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:list-id: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=4Bj/XnMLoyI9v4mFWIxNPmnfd+Qc0Lzs006txFhu2YM=; b=vqd1hIjWlxhyekPbQTIPtfm4iW/uPqnnanZSRVFETEyQUqAC0iuVhgdflnAP7UMY/id6V4 a3wbWMb0RjH6kJZh6p7v2NI3deHogHvHoUi4kBQYxUTNVICAXyNkEXXjFsUYUTZfli/Kgr AwxFUwNVuZby3Bm1kdfNynDxSROK2WuBBCP0LWu3Fh/JFTAitbEN3r/bZbOlsNOqbv/DtM YeI4RIa0bKpVqPyv8gUuyIrlqv3MajAKzhcFOu04sXGIkxwMrC7SlHIrXx6XmyeOdjizHi aUgifnB/e3szsM4tVPxjOaO+3UKtSrJUlScK7mPLXO3XIxuqlb3SjI9yWb7+sQ== Received: from mail-a.sr.ht (mail-a.sr.ht [46.23.81.152]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E7C62839F7 for ; Fri, 11 Oct 2024 18:57:19 +0200 (CEST) DKIM-Signature: a=rsa-sha256; bh=48bxysKr3wL5u/xCYcN9jFlLFEvlfKS9WVsFbQhL448=; c=simple/simple; d=lists.sr.ht; h=From:To:Cc:Subject:Date:List-Unsubscribe:List-Subscribe:List-Archive:List-Post:List-ID; q=dns/txt; s=20240113; t=1728665839; v=1; b=M82Qwa8CGX5BdJCJ1iDiALg5dye62wda7k6xJmt0sQacEEekqHgO+kPHFr1ifJNVYMILjqq+ noA3mzb1VgMRaLBu2yHJdKWLFiQHuEQG2HnvcuapkwEXMXyFyvNBZX1l7sXY7S75+xJMUmxdiXB oMllD7FahLUg+mlIU61lwIvgqibKoFxRKMxgsnsC+F01SZ/EgrUTFLSR5ACDzNWvWpjHZcLM3vl HJOepu2F9PxtJspyIcMjuJZV2bMUWxRubAJifzRl6T2+u9eYHVoCOvB8x15zbxT0/HHQJyQE6hI 04+rLrZXJLasTqbRSBOLdaq0ZVec3m8gQ1gTjWWlp3FBg== Received: from lists.sr.ht (unknown [46.23.81.154]) by mail-a.sr.ht (Postfix) with ESMTPSA id B08F42029D for ; Fri, 11 Oct 2024 16:57:19 +0000 (UTC) Received: from poodle.tulip.relay.mailchannels.net (poodle.tulip.relay.mailchannels.net [23.83.218.249]) by mail-a.sr.ht (Postfix) with ESMTPS id 34B9620294 for <~johnnyrichard/olang-devel@lists.sr.ht>; Fri, 11 Oct 2024 16:57:18 +0000 (UTC) X-Sender-Id: hostingeremail|x-authuser|carlos@maniero.me Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 7836F1C641D for <~johnnyrichard/olang-devel@lists.sr.ht>; Fri, 11 Oct 2024 16:57:16 +0000 (UTC) Received: from uk-fast-smtpout10.hostinger.io (100-99-0-125.trex-nlb.outbound.svc.cluster.local [100.99.0.125]) (Authenticated sender: hostingeremail) by relay.mailchannels.net (Postfix) with ESMTPA id B9C211C6484 for <~johnnyrichard/olang-devel@lists.sr.ht>; Fri, 11 Oct 2024 16:57:15 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1728665836; a=rsa-sha256; cv=none; b=pPlxWQ6hH2s07Dxs2+quxWu7OdYaK0X05v7DSM99dwgaobC1DPs09O11+YG0YIhegGWiN2 XIjRScGOtZzs5TxNhJpM5w3kbMDzjsxJlJWxFoaqiIUH34F4/sZ+NQ55EglDazwTjbv9W+ r6Khgm6l6ihdabL8uXGs5fgKE9ls2EmFNuYyJBlcMt7Blb0I3izBVsBo1G8wRi/8yp0iHz U3zI31RXwgJ7jzwadjWyAi/G7LV1yFHknRnUm/DUczpyG26hKPykg8eWubN0LKILnnbjhR fF2qslIkcM6DX+WSbHnkzvqn0v/ArRo7R256hDhBzjqPylK2KIfFOYsdA8FePA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1728665836; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:dkim-signature; bh=4Bj/XnMLoyI9v4mFWIxNPmnfd+Qc0Lzs006txFhu2YM=; b=BFoqJWudeOd73l4bsHScykYjGbAvjDq1UsFlbjMiGpyU111fGRN+pf/OVmlABZ2yNOWmWc 39HyGVj5MR6c0pZcot+VPc6rei+gF69uY5ccPx/Hnkg/kYHjcbUxpwA3EfVfjpTW8yF51h tRyhRZmMYG44njaHsESIFLAPOH+TqaQZ+eZM9bnHJZSo2zictSIyap4QfbzpXPo+bO69z2 8vcgYjE3ydQfUMkp2AEG+9YTTDqvtTPk3hSTPDvQIKKjQO7x9FhpRuk/FNS0F+we16UGAS 9IxGe0A6DJhis2k2SSwrxrf1FHbs4EuUp+ofiOyymruqZ41zn772X/zS9AdEqg== ARC-Authentication-Results: i=1; rspamd-667df746d9-z5hfv; auth=pass smtp.auth=hostingeremail smtp.mailfrom=carlos@maniero.me X-Sender-Id: hostingeremail|x-authuser|carlos@maniero.me X-MC-Relay: Neutral X-MailChannels-SenderId: hostingeremail|x-authuser|carlos@maniero.me X-MailChannels-Auth-Id: hostingeremail X-Share-Trouble: 533368f42dd2939f_1728665836249_413798845 X-MC-Loop-Signature: 1728665836249:464435314 X-MC-Ingress-Time: 1728665836249 Received: from uk-fast-smtpout10.hostinger.io (uk-fast-smtpout10.hostinger.io [145.14.155.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.99.0.125 (trex/7.0.2); Fri, 11 Oct 2024 16:57:16 +0000 From: Carlos Maniero DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maniero.me; s=hostingermail1; t=1728665833; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=4Bj/XnMLoyI9v4mFWIxNPmnfd+Qc0Lzs006txFhu2YM=; b=rfKIVo7rVf3moTZbdMAQ8YECOzCxbJvC/8IH3u//2rETUeW735NEyGWESqjoifEiBP4fJv kY3q1/lfTwFzXY34Aru+fn0tW4hB4un3TiQJ+dPa48aDzTwqyiBcL2fwf1i/V8u3Aie+AC 61HWSBBz0nzwmwom9VcRTQyRZ8C7irAOt8zLIURWigUNuFpccD69rkJLlTLFpFqle2MbFl hDNr4xpScKg31xKhfXyy4xLxaq0wR/wtZFgDlyXx74Bz+UldbS9rgkjJQvtv6+xwiwmIQc sSbVIaTCAzqcX0QfQyee3Gkn5my5bPAB0oXu3TuPYWx44PJiXyJXIZX1eAqekg== To: ~johnnyrichard/olang-devel@lists.sr.ht Cc: Carlos Maniero Subject: [PATCH olang v2 0/4] codestyle: change our formater Message-ID: <20241011165708.553265-1-carlos@maniero.me> X-Mailer: git-send-email 2.46.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Fri, 11 Oct 2024 16:57:13 +0000 (UTC) X-CM-Analysis: v=2.4 cv=TcnEtgQh c=1 sm=1 tr=0 ts=670958e9 a=WwxFCuf3mf1fs3oSi6/dng==:117 a=WwxFCuf3mf1fs3oSi6/dng==:17 a=MKtGQD3n3ToA:10 a=1oJP67jkp3AA:10 a=Fa8s2uQ9u3k-xoW-pBgA:9 a=BXDaF_L80NY05PYiAFlV:22 X-CM-Envelope: MS4xfN4FNfWSfyMVe8sWoCEmKvq3CzAFleKmwawYve+6fojHiwdm9aBIHLg1LZHPCiXUhlbixKiQOyqI3DTpOLwR/eldO8qnfj7pt9JW87net91ObD/qf3Ax LS/X0sr4sgHI+EnYcGpHmpKdJw500UQlkH+oF4govulp2xh0g2CddTXkZb1kv4N70aOl5K6yDU87EKX6levGew0zaGrNcc5ZYIxAWmNq56ZaR5GXSLcrBFYu X-AuthUser: carlos@maniero.me List-Unsubscribe: List-Subscribe: List-Archive: Archived-At: List-Post: List-ID: ~johnnyrichard/olang-devel <~johnnyrichard/olang-devel.lists.sr.ht> Sender: ~johnnyrichard/olang-devel <~johnnyrichard/olang-devel@lists.sr.ht> X-Migadu-Country: NL X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -5.18 X-Spam-Score: -5.18 X-Migadu-Queue-Id: E7C62839F7 X-Migadu-Scanner: mx10.migadu.com X-TUID: ecxLOztJX9rY After the discussion on the previous patchset[1], we decided to drop the follow configs: codestyle: change AlignAfterOpenBracket to BlockIndent codestyle: never BreakBeforeBraces [1]: Message-ID <20241010013318.222905-1-carlos@maniero.me> Carlos Maniero (4): codestyle: prevent extra empty lines at EOF codestyle: do not allow single line enums codestyle: add trailing comma on struct initializer codestyle: limit the code to 80 characters .clang-format | 7 +- src/ast.c | 60 ++++-- src/ast.h | 38 +++- src/checker.c | 13 +- src/cli.c | 34 ++-- src/codegen_linux_x86_64.c | 339 ++++++++++++++++++++++++---------- src/codegen_linux_x86_64.h | 3 +- src/lexer.c | 97 +++++++--- src/main.c | 24 ++- src/map.c | 26 ++- src/parser.c | 73 ++++++-- src/pretty_print_ast.c | 81 +++++--- src/scope.c | 9 +- src/string_view.c | 5 +- tests/unit/arena_test.c | 26 ++- tests/unit/list_test.c | 33 +++- tests/unit/map_test.c | 20 +- tests/unit/string_view_test.c | 46 ++++- 18 files changed, 693 insertions(+), 241 deletions(-) base-commit: dae44406b4bd25c83c81bc528146d76c797e1b0e -- 2.46.1