summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorAndré Almeida <andrealmeid@collabora.com>2019-09-17 21:41:45 +0200
committerJonathan Corbet <corbet@lwn.net>2019-10-01 14:57:12 +0200
commit2b5f78e5e942d76e5497f53c2298900224b52c51 (patch)
treefe375d7b53e11ef89035c76a744ae41bf114560e /Documentation
parentscripts/sphinx-pre-install: add how to exit virtualenv usage message (diff)
downloadlinux-2b5f78e5e942d76e5497f53c2298900224b52c51.tar.xz
linux-2b5f78e5e942d76e5497f53c2298900224b52c51.zip
kernel-doc: fix processing nested structs with attributes
The current regular expression for strip attributes of structs (and for nested ones as well) also removes all whitespaces that may surround the attribute. After that, the code will split structs and iterate for each symbol separated by comma at the end of struct definition (e.g. "} alias1, alias2;"). However, if the nested struct does not have any alias and has an attribute, it will result in a empty string at the closing bracket (e.g "};"). This will make the split return nothing and $newmember will keep uninitialized. Fix that, by ensuring that the attribute substitution will leave at least one whitespace. Signed-off-by: André Almeida <andrealmeid@collabora.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions