* [PATCH] tags: fix "config ..." false positives
@ 2019-10-20 16:48 Alexey Dobriyan
0 siblings, 0 replies; only message in thread
From: Alexey Dobriyan @ 2019-10-20 16:48 UTC (permalink / raw)
To: yamada.masahiro; +Cc: linux-kernel
"config" regex is too loose, giving a few false positives
CONFIG_and drivers/pci/controller/Kconfig /^ config and MMIO accesses.$/;" r
CONFIG_option arch/x86/Kconfig /^ config option.$/;" r
CONFIG_option init/Kconfig /^ config option determines the parameter's default value.$/;" r
and drivers/pci/controller/Kconfig /^ config and MMIO accesses.$/;" r
option arch/x86/Kconfig /^ config option.$/;" r
option init/Kconfig /^ config option determines the parameter's default value.$/;" r
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
scripts/tags.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/scripts/tags.sh
+++ b/scripts/tags.sh
@@ -213,8 +213,8 @@ regex_c=(
'/\<\(DEFINE\|DECLARE\)_STATIC_KEY_\(TRUE\|FALSE\)\(\|_RO\)(\([[:alnum:]_]\+\)/\4/'
)
regex_kconfig=(
- '/^[[:blank:]]*\(menu\|\)config[[:blank:]]\+\([[:alnum:]_]\+\)/\2/'
- '/^[[:blank:]]*\(menu\|\)config[[:blank:]]\+\([[:alnum:]_]\+\)/CONFIG_\2/'
+ '/^[[:blank:]]*\(menu\|\)config[[:blank:]]\+\([[:alnum:]_]\+\)$/\2/'
+ '/^[[:blank:]]*\(menu\|\)config[[:blank:]]\+\([[:alnum:]_]\+\)$/CONFIG_\2/'
)
setup_regex()
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-10-20 16:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-20 16:48 [PATCH] tags: fix "config ..." false positives Alexey Dobriyan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.