History

checkkconfigsymbols.py: support Kconfig's 'imply' statement

Support the new imply statement in Kconfig. The imply statement has been added by commit 237e3ad0f195 ("Kconfig: Introduce the "imply" keyword") and is a weak version of a select, but the target symbol can still be turned off.

Valentin Rothberg committed 9 years ago

Commit 3b28f4f1 parent 47f60a01 file · +1 −1Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/checkkconfigsymbols.py+1−1
@@ -24,7 +24,7 @@ SYMBOL = r"(?:\w*[A-Z0-9]\w*){2,}" · 23 unmodified lines
2424 DEF = r"^\s*(?:menu){,1}config\s+(" + SYMBOL + r")\s*"
2525 EXPR = r"(?:" + OPERATORS + r"|\s|" + SYMBOL + r")+"
2626 DEFAULT = r"default\s+.*?(?:if\s.+){,1}"
27−STMT = r"^\s*(?:if|select|depends\s+on|(?:" + DEFAULT + r"))\s+" + EXPR
27+STMT = r"^\s*(?:if|select|imply|depends\s+on|(?:" + DEFAULT + r"))\s+" + EXPR
2828 SOURCE_SYMBOL = r"(?:\W|\b)+[D]{,1}CONFIG_(" + SYMBOL + r")"
2929
3030 # regex objects