elixir/t/tree/issue102.c
Chris White a171485c4f doc-comments: support uncommented first function
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.
2020-04-04 12:21:45 -04:00

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 */