Skip to content

checkpatch --debug rx=1 facility

Jim Cromie lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 2 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2checkpatch: add --debug rx=1|foo option and drx_print() helperscripts/checkpatch.pl+34 -00 replies
2/2checkpatch: 3 use-cases for --debug rx=1 optionscripts/checkpatch.pl+11 -32 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] checkpatch --debug rx=1 facility

checkpatch uses a lot of s/// and s///g heuristics to cleanup code-chunks, before inspecting for problems with more heurisitics.

add a drx_print("reason") helper, for use like:

  s/$patt//;	-> s/$patt/drx_print("does this")/e;
  s/$patt//g;	-> s/$patt/drx_print("does that")/ge;

(note the 'e' modifier)

To activate, pass --debug rx=1 or --debug rx="this"

Jim Cromie (2):
checkpatch: add --debug rx=1|foo option and drx_print() helper
checkpatch: 3 use-cases for --debug rx=1 option

 scripts/checkpatch.pl | 48 ++++++++++++++++++++++++++++++++++++++++---
 1 file changed, 45 insertions(+), 3 deletions(-)
Signature · 1 line
2.51.0