cstyle: understand macro params can be empty
commitba00a6f9a3961876cbaacf5e4534efdbe2c9ff47
authorRob Norris <robn@despairlabs.com>
Wed, 4 Dec 2024 06:55:32 +0000 (4 17:55 +1100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 6 Dec 2024 16:53:36 +0000 (6 08:53 -0800)
treea23dbb351615f84c1901a7db06792f45ca3d6fda
parent903895ea5f5f4bd21f654f84c17b4d294ac65049
cstyle: understand macro params can be empty

It's not uncommon to have empty parameters in code generator macros,
usually when multiple parameters are concatenated or stringified into a
single token or literal. So, exclude the space-before-comma check, which
will allow construction like `MACRO_CALL(foo, , baz)`.

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16840
scripts/cstyle.pl