Skip to content

docs: kdoc: convert tracepoint parsing to CMatch

Omokefe Emmanuel Onanaroghene linux-doc lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 0 repliesNew

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2docs: kdoc: handle nested commas in CMatch argumentstools/lib/python/kdoc/c_lex.py tools/unittests/test_cmatch.py+9 -10 replies
2/2docs: kdoc: handle TRACE_EVENT_FN() with CMatchtools/lib/python/kdoc/c_lex.py tools/lib/python/kdoc/kdoc_parser.py tools/lib/python/kdoc/xforms_lists.py +1 more+120 -880 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] docs: kdoc: convert tracepoint parsing to CMatch

Mauro suggested handling tracepoint and syscall declarations with pure CMatch transformations, and keeping any nested-comma tokenizer correction in a separate patch. This series follows that split.

Patch 1 fixes CMatch argument grouping so delimiters inside nested expressions do not split the outer macro arguments. Patch 2 replaces the procedural syscall and tracepoint munging with CMatch transformations, including support for the TRACE_EVENT_FN() family, and adds parser tests.

Omokefe Emmanuel Onanaroghene (2):
docs: kdoc: handle nested commas in CMatch arguments
docs: kdoc: handle TRACE_EVENT_FN() with CMatch

 tools/lib/python/kdoc/c_lex.py        | 22 ++++++-
 tools/lib/python/kdoc/kdoc_parser.py  | 94 ++-------------------------
 tools/lib/python/kdoc/xforms_lists.py | 39 +++++++++++
 tools/unittests/test_cmatch.py        |  7 ++
 tools/unittests/test_kdoc_parser.py   | 56 ++++++++++++++++
 5 files changed, 129 insertions(+), 89 deletions(-)

base-commit: 90d9f76ccb72ec024ef476b4229f3dd1957d7b26

Signature · 1 line
2.43.0