1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-06-02 07:41:32 +00:00

Allow us to ignore some docblock errors

This commit is contained in:
Peter Evans 2018-01-07 20:08:46 -06:00
parent 62035d03b8
commit 3f59db311b
2 changed files with 5 additions and 3 deletions

View File

@ -93,6 +93,6 @@ objstore_ready()
* screwing up my indent, to be honest. But C will ignore the
* semicolons, so all is well.
*/
OBJSTORE_DEFN(apple2_sys_rom);
OBJSTORE_DEFN(apple2_disk2_rom);
OBJSTORE_DEFN(apple2_sysfont);
OBJSTORE_DEFN(apple2_sys_rom); // ignore docblock
OBJSTORE_DEFN(apple2_disk2_rom); // ignore docblock
OBJSTORE_DEFN(apple2_sysfont); // ignore docblock

View File

@ -74,6 +74,8 @@ def test_name_from_func(suite, func):
# not. (Which we can determine because there should be a closing comment
# token on the line above the type.)
def has_doc_block(lines, linenum):
if lines[linenum].find('// ignore docblock'):
return True
return linenum-2 >= 0 and (lines[linenum-2] == ' */' or lines[linenum-1] == ' */')
# Do we have a test for this function? The fname is the test file, and