mirror of
https://github.com/apache/nuttx.git
synced 2026-05-24 15:56:38 +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:
+7
-1
@@ -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)
|
||||
{
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user