]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
checkpatch: widen implied comment detection to allow multiple stars
authorAndy Whitcroft <apw@shadowen.org>
Tue, 6 Jan 2009 22:41:17 +0000 (14:41 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 6 Jan 2009 23:59:15 +0000 (15:59 -0800)
Some people use double star '**' as a comment continuation, and start
comments with complete lines of stars.  Widen the implied comment
detection to pick these up.

Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl

index 7c17e95bf36ff1f9d9ffb298c6622aed9a736ea7..a305aa52b8b16e0285f2b3c93228ca820609ada1 100755 (executable)
@@ -1109,7 +1109,7 @@ sub process {
                        # is the start of a diff block and this line starts
                        # ' *' then it is very likely a comment.
                        if (!defined $edge &&
-                           $rawlines[$linenr] =~ m@^.\s* \*(?:\s|$)@)
+                           $rawlines[$linenr] =~ m@^.\s*(?:\*\*+| \*)(?:\s|$)@)
                        {
                                $in_comment = 1;
                        }