forked from github/verilator
Internals: yapf reformat vlcovgen. No functional change.
This commit is contained in:
parent
cbd1bd5dad
commit
84c323188e
@ -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 \
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user