[PATCH v4 0/2] kernel-doc: fix typedef function parser

From: Mauro Carvalho Chehab
Date: Tue Oct 27 2020 - 06:20:47 EST


Hi Jon,

This small series contain the latest version of the typedef parsing
fixes that we've been discussing as:

[PATCH v3 01/56] scripts: kernel-doc: fix typedef parsing

As I said there, at least while discussing it, I opted to split the
patch in two.

The first one changes the regex;
The second one is just a cleanup that splits the 3 arguments into 3
vars.

>From my side, I'm not 100% confident if the second patch is
worth or not.

The advantage of it is that it makes easier to read the regex.
It also also makes clearer about the differences between
the two typedef regex'es that are used there.

On the other hand, using a site like regex101.com to
test it is harder, as one needs to copy-and-paste 3 expressions
instead of just one.

So, when appliying, feel free to decide to either:

- merge both as-is (two separate patches);
- fold them into a single patch;
- drop the second patch.

Mauro Carvalho Chehab (2):
scripts: kernel-doc: fix typedef parsing
scripts: kernel-doc: split typedef complex regex

scripts/kernel-doc | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)

--
2.26.2