Re: [PATCH RFCv2 4/5] scripts/kernel-doc.py: add a Python parser
Em Thu, 13 Feb 2025 13:06:17 +0100 Mauro Carvalho Chehab escreveu: > +def dump_function(self, ln, prototype): > + ... > +(r""" > + __attribute__\s*\(\( > +(?: > +[\w\s]++ # attribute name > +(?:\([^)]*+
[PATCH RFCv2 4/5] scripts/kernel-doc.py: add a Python parser
Maintaining kernel-doc has been a challenge, as there aren't many perl developers among maintainers. Also, the logic there is too complex. Having lots of global variables and using pure functions doesn't help. Rewrite the script in Python, placing most global variables inside classes. This should