From 5fca76b56034554d965b77d1485f92685d79bc84 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 7 Jul 2026 23:51:17 +0200 Subject: Let arguments be able to reference their macro MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The enum type for macro arguments has been adjusted so it accepts a String. This is then used to store the name of the macro for this argument. This is a bit of a circlejerk, but in the end it stems from the fact that macro arguments were sort of a hack defined ad-hoc each time they were needed. That being said, if we want to report macro arguments being unused, we need to reference the actual macro definition, not the macro call. Signed-off-by: Miquel Sabaté Solà --- tests/expected/unused_macro_arg.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/expected/unused_macro_arg.txt') diff --git a/tests/expected/unused_macro_arg.txt b/tests/expected/unused_macro_arg.txt index e69de29..7ca122a 100644 --- a/tests/expected/unused_macro_arg.txt +++ b/tests/expected/unused_macro_arg.txt @@ -0,0 +1 @@ +warning: argument 'OTHER' of the macro 'BCD_ADD' is unused (unused_macro_arg.s: line 11) -- cgit v1.2.3