public inbox for linux-doc@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/14] kernel-doc: make it parse new functions and structs
@ 2026-01-27 10:13 Mauro Carvalho Chehab
  2026-01-27 10:13 ` [PATCH 01/14] docs: kdoc_re: add support for groups() Mauro Carvalho Chehab
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: Mauro Carvalho Chehab @ 2026-01-27 10:13 UTC (permalink / raw)
  To: Linux Doc Mailing List, Jonathan Corbet
  Cc: Mauro Carvalho Chehab, linux-kernel, Randy Dunlap

There are some patches at linux-next improving support and documentation
for context analysis. Those adds a new set of macros that are not
supported by the pure C Sphinx parser.

Add support by them, extending the usage of NestedMatch to cover more
complex macros.

This series is more complex than originally planned, as we found
a couple of hidden bugs at kernel-doc.

The series were co-developed with Randy, with came up with the
original patch. I ended helping identifying kernel-doc issues and
doing some changes to make the parser more reliable.

At least on my machine, by applying this patch and asking
kernel-doc to parse the entire Kernel tree reduced the
time from 36 seconds to 35 seconds, so it actually made it
a little bit faster.

It should now be possible to document all sorts of function
macros, as one of the bugs is that we were replacing macros
with blank strings, due to the incorrect usage of function_xforms.

Mauro Carvalho Chehab (12):
  docs: kdoc_re: add support for groups()
  docs: kdoc_re: don't go past the end of a line
  docs: kdoc_parser: move var transformers to the beginning
  docs: kdoc_parser: don't mangle with function defines
  docs: kdoc_parser: add functions support for NestedMatch
  docs: kdoc_parser: use NestedMatch to handle __attribute__ on
    functions
  docs: kdoc_parser: fix variable regexes to work with size_t
  docs: kdoc_parser: fix the default_value logic for variables
  docs: kdoc_parser: add some debug for variable parsing
  docs: kdoc_parser: don't exclude defaults from prototype
  docs: kdoc_parser: fix parser to support multi-word types
  docs: kdoc_parser: add support for LIST_HEAD

Randy Dunlap (2):
  docs: kdoc_parser: ignore context analysis and lock attributes
  kdoc_parser: handle struct member macro VIRTIO_DECLARE_FEATURES(name)

 tools/lib/python/kdoc/kdoc_parser.py | 103 +++++++++++++++++++--------
 tools/lib/python/kdoc/kdoc_re.py     |   9 ++-
 2 files changed, 81 insertions(+), 31 deletions(-)

-- 
2.52.0


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2026-01-27 10:13 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-27 10:13 [PATCH 00/14] kernel-doc: make it parse new functions and structs Mauro Carvalho Chehab
2026-01-27 10:13 ` [PATCH 01/14] docs: kdoc_re: add support for groups() Mauro Carvalho Chehab
2026-01-27 10:13 ` [PATCH 02/14] docs: kdoc_re: don't go past the end of a line Mauro Carvalho Chehab
2026-01-27 10:13 ` [PATCH 03/14] docs: kdoc_parser: move var transformers to the beginning Mauro Carvalho Chehab
2026-01-27 10:13 ` [PATCH 04/14] docs: kdoc_parser: don't mangle with function defines Mauro Carvalho Chehab
2026-01-27 10:13 ` [PATCH 05/14] docs: kdoc_parser: add functions support for NestedMatch Mauro Carvalho Chehab
2026-01-27 10:13 ` [PATCH 06/14] docs: kdoc_parser: use NestedMatch to handle __attribute__ on functions Mauro Carvalho Chehab
2026-01-27 10:13 ` [PATCH 07/14] docs: kdoc_parser: fix variable regexes to work with size_t Mauro Carvalho Chehab
2026-01-27 10:13 ` [PATCH 08/14] docs: kdoc_parser: fix the default_value logic for variables Mauro Carvalho Chehab
2026-01-27 10:13 ` [PATCH 09/14] docs: kdoc_parser: add some debug for variable parsing Mauro Carvalho Chehab
2026-01-27 10:13 ` [PATCH 10/14] docs: kdoc_parser: don't exclude defaults from prototype Mauro Carvalho Chehab
2026-01-27 10:13 ` [PATCH 11/14] docs: kdoc_parser: fix parser to support multi-word types Mauro Carvalho Chehab
2026-01-27 10:13 ` [PATCH 12/14] docs: kdoc_parser: ignore context analysis and lock attributes Mauro Carvalho Chehab
2026-01-27 10:13 ` [PATCH 13/14] docs: kdoc_parser: add support for LIST_HEAD Mauro Carvalho Chehab
2026-01-27 10:13 ` [PATCH 14/14] kdoc_parser: handle struct member macro VIRTIO_DECLARE_FEATURES(name) Mauro Carvalho Chehab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox