If the first function in a file does not have a doc comment, do not run off the beginning of the file. Fixes #102. Also: - Add t/tree/issue102.c that exhibits this bug. - in find-file-doc-comments.pl and script.sh, exit with a nonzero code if this should recur.
14 lines
214 B
C
14 lines
214 B
C
void foo(void)
|
|
{
|
|
}
|
|
/* This file triggers the bug described in #102. */
|
|
|
|
/**
|
|
* documented_function_XYZZY
|
|
*/
|
|
void documented_function_XYZZY(void)
|
|
{
|
|
}
|
|
|
|
/* t/tree/issue102.c */
|
|
/* SPDX-License-Identifier: CC0-1.0 */
|