mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 10:58:49 +08:00
tools/nxstyle.c: Tool depends on the file under test containing "Private Functions" or "Public Functions" block comments. Emit an error is neither are present.
This commit is contained in:
parent
61f3881132
commit
005a077310
1 changed files with 7 additions and 1 deletions
|
@ -1599,9 +1599,15 @@ int main(int argc, char **argv, char **envp)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!bfunctions)
|
||||||
|
{
|
||||||
|
fprintf(stderr, "ERROR: \"Private/Public Functions\" not found!\n");
|
||||||
|
fprintf(stderr, " File could not be checked.\n");
|
||||||
|
}
|
||||||
|
|
||||||
if (ncomment > 0 || bstring)
|
if (ncomment > 0 || bstring)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "In a comment/string at end of file\n");
|
fprintf(stderr, "ERROR: In a comment/string at end of file\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
fclose(instream);
|
fclose(instream);
|
||||||
|
|
Loading…
Reference in a new issue