scripts: kernel-doc: fix typedef support for struct/union parsing
authorAditya Srivastava <yashsri421@gmail.com>
Thu, 25 Feb 2021 14:50:33 +0000 (20:20 +0530)
committerJonathan Corbet <corbet@lwn.net>
Sun, 7 Mar 2021 00:36:51 +0000 (17:36 -0700)
commita746fe32cd362c8bba523a97123129ede4f5b75a
treeccd5ccde2cb37194e2fb0aeba742cae544b32f55
parent1eff491fc44b9a1cd3483e289b987c2d00441f20
scripts: kernel-doc: fix typedef support for struct/union parsing

Currently, there are ~1290 occurrences in 447 files in the kernel tree
'typedef struct/union' syntax for defining some struct/union. However,
kernel-doc currently does not support that syntax. Of the ~1290
occurrences, there are four occurrences in ./include/linux/zstd.h with
typedef struct/union syntax and a preceding kernel-doc; all other
occurrences have no preceding kernel-doc.

Add support for parsing struct/union following this syntax.

Signed-off-by: Aditya Srivastava <yashsri421@gmail.com>
Link: https://lore.kernel.org/r/20210225145033.11431-1-yashsri421@gmail.com
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
scripts/kernel-doc