We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f926741 commit 973d006Copy full SHA for 973d006
find-file-doc-comments.pl
@@ -105,6 +105,9 @@ sub main {
105
# back to it manually. Move to the first line that might be a doc comment.
106
--$lineno;
107
108
+ # If we ran off the beginning of the file, there's no doc comment.
109
+ next if $lineno <= 0;
110
+
111
# TODO make sure we're not still in the definition.
112
# E.g., memblock.h:for_each_mem_range(). The defintion is reported
113
# on the second line of the #define, not the first line.
0 commit comments