Internals: yapf reformat vlcovgen. No functional change.

This commit is contained in:
Wilson Snyder 2020-12-23 19:17:34 -05:00
parent cbd1bd5dad
commit 84c323188e
2 changed files with 5 additions and 5 deletions

View File

@ -481,6 +481,7 @@ YAPF_FILES = \
src/config_rev \
src/cppcheck_filtered \
src/flexfix \
src/vlcovgen \
nodist/code_coverage \
nodist/code_coverage.dat \
nodist/dot_importer \

View File

@ -53,16 +53,15 @@ def write_keys(filename):
deleting = True
out.append(line)
for keyref in sorted(Items, key=lambda a: a['name']):
out.append(
"#define VL_CIK_%s \"%s\"\n" %
(keyref['name'].upper(), keyref['short']))
out.append("#define VL_CIK_%s \"%s\"\n" %
(keyref['name'].upper(), keyref['short']))
elif re.search(r'VLCOVGEN_SHORT_AUTO_EDIT_BEGIN', line):
deleting = True
out.append(line)
for keyref in sorted(Items, key=lambda a: a['name']):
out.append(
" if (key == \"%s\") return VL_CIK_%s;\n" %
(keyref['name'], keyref['name'].upper()))
" if (key == \"%s\") return VL_CIK_%s;\n" %
(keyref['name'], keyref['name'].upper()))
elif re.search(r'VLCOVGEN_.*AUTO_EDIT_END', line):
deleting = False
out.append(line)