lint.py
10.1 KB
-
由Ulf Magnusson编写于
Add a new --check-missing-config-prefix check that looks for references like #if MACRO #if(n)def MACRO defined(MACRO) IS_ENABLED(MACRO) where MACRO is the name of a defined Kconfig symbol but doesn't have a CONFIG_ prefix. Could be a typo. Skip MACRO if it is #define'd somewhere, even if it looks like a Kconfig symbol. Found e.g. https://github.com/zephyrproject-rtos/zephyr/pull/22195. Piggyback skipping binary files when grepping for Kconfig symbol references. Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
e2f647b0