]> git.baikalelectronics.ru Git - kernel.git/commit
scripts/tags: add space regexs to all regex_c
authorZhaoyu Liu <zackary.liu.pro@gmail.com>
Wed, 3 Nov 2021 15:22:42 +0000 (23:22 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Nov 2021 15:58:55 +0000 (16:58 +0100)
commit657bbaab9a44a26c0ae13b39c2d1aea496912bbc
tree4d8b5f6f056fa6c2670bfde76b5138f5e443808e
parentf0c58bd4eac7e263b15c1f9491ca8539c0edfaab
scripts/tags: add space regexs to all regex_c

When "make tags", it prompts a warning:

    ctags: Warning: drivers/pci/controller/pcie-apple.c:150:
    null expansion of name pattern "\1"

The reason is that there is an indentation beside arguments of
DECLARE_BITMAP, but it can parsed normally by gtags. It's also
allowed in C.

Regex [:space:] can match any white space character, so it's a
better approach to add it to each item in regex_c.

Suggested-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Zhaoyu Liu <zackary.liu.pro@gmail.com>
Link: https://lore.kernel.org/r/20211103152234.GA23295@pc
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/tags.sh