Hi Jim,

> I have always preferred that style.
> This is a very welcome readability improvement.

Glad to hear that.

> Do you have tooling to automate the transformation or even the
> detection? So far, I haven't found any.

For the detection, I use Emacs M-x grep so far. For more complicated
patterns, there are several options (clang-tidy, gcc with custom
plugin, coccinelle, clang AST, semgrep, and other tree-sitter based
tools); I will probably try clang-tidy when I need it.

For the validation of the resulting code, I use "gcc -Wall -Wshadow=local"
and, of course, the multi-platform CI.

Bruno




Reply via email to