aboutsummaryrefslogtreecommitdiff
path: root/tools/odinfmt/tests
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-25 21:10:53 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-26 19:28:38 -0400
commit0d767601f59dbe3e700047f6bc3937daa346c148 (patch)
tree874a954d7b8098a35a1143997972d96f1d47a02c /tools/odinfmt/tests
parent5782a7aa19e2bc95450bb0099407f38407e8bc2d (diff)
Correctly format types with a long value decl
Diffstat (limited to 'tools/odinfmt/tests')
-rw-r--r--tools/odinfmt/tests/.snapshots/procedures.odin9
-rw-r--r--tools/odinfmt/tests/procedures.odin3
2 files changed, 12 insertions, 0 deletions
diff --git a/tools/odinfmt/tests/.snapshots/procedures.odin b/tools/odinfmt/tests/.snapshots/procedures.odin
index 791439d..43848bd 100644
--- a/tools/odinfmt/tests/.snapshots/procedures.odin
+++ b/tools/odinfmt/tests/.snapshots/procedures.odin
@@ -12,3 +12,12 @@ tracking_allocator_check_leaks :: proc(
}
+
+init: proc(
+ window_width: int,
+ window_height: int,
+ window_title: string,
+ allocator := context.allocator,
+ loc := #caller_location,
+ ) -> ^State :
+ _init
diff --git a/tools/odinfmt/tests/procedures.odin b/tools/odinfmt/tests/procedures.odin
index 3cd54f1..effd076 100644
--- a/tools/odinfmt/tests/procedures.odin
+++ b/tools/odinfmt/tests/procedures.odin
@@ -8,3 +8,6 @@ tracking_allocator_check_leaks :: proc(tracking_allocator: ^mem.Tracking_Allocat
}
+
+init: proc(window_width: int, window_height: int, window_title: string,
+ allocator := context.allocator, loc := #caller_location) -> ^State : _init