* [PATCH] kernel-doc: detect trailing kernel-doc line trash
@ 2008-04-02 22:46 Randy Dunlap
0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2008-04-02 22:46 UTC (permalink / raw)
To: lkml; +Cc: akpm
From: Randy Dunlap <randy.dunlap@oracle.com>
Print a warning when a kernel-doc comment block ends with text on the
same line as the ending comment characters, e.g.:
* this text is lost. */
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
scripts/kernel-doc | 5 +++++
1 file changed, 5 insertions(+)
--- lin2625-rc8-kdoc.orig/scripts/kernel-doc
+++ lin2625-rc8-kdoc/scripts/kernel-doc
@@ -1950,6 +1950,11 @@ sub process_file($) {
$section = $section_default;
$contents = "";
}
+ # look for doc_com + <text> + doc_end:
+ if ($_ =~ m'\s*\*\s*[a-zA-Z_0-9:\.]+\*/') {
+ print STDERR "Warning(${file}:$.): suspicious ending line: $_";
+ ++$warnings;
+ }
$prototype = "";
$state = 3;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-04-02 22:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-02 22:46 [PATCH] kernel-doc: detect trailing kernel-doc line trash Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®