Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs: kdoc: remove a couple of spurious regex characters

The "name" regex in dump_function() includes both the tilde and colon
characters, but neither has any place in function prototypes. Remove the
characters, after which the regex simplifies to "\w+"

No output changes.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>

+1 -1
+1 -1
scripts/lib/kdoc/kdoc_parser.py
··· 958 958 # - atomic_set (macro) 959 959 # - pci_match_device, __copy_to_user (long return type) 960 960 961 - name = r'[a-zA-Z0-9_~:]+' 961 + name = r'\w+' 962 962 prototype_end1 = r'[^\(]*' 963 963 prototype_end2 = r'[^\{]*' 964 964 prototype_end = fr'\(({prototype_end1}|{prototype_end2})\)'