[PATCH] scripts: macro_checker: match complete argument identifiers

From: omer zalman

Date: Mon Sep 28 2026 - 19:47:37 EST


The checker uses substring membership to decide whether a macro
argument is used. In '#define dummy(x) max(1, 2)', the x in 'max'
hides an unused parameter. Match the argument at identifier
boundaries so this simple false negative is reported.

Signed-off-by: Omer Zalman <omerzalman42@xxxxxxxxx>

The exact git-format-patch file is attached because Gmail's web
composer removes tabs from inline diffs.

Attachment: 06-macro-checker-argument-identifiers.patch
Description: Binary data