mirror of
https://github.com/verilator/verilator.git
synced 2025-01-01 04:07:34 +00:00
Apply clang-format
This commit is contained in:
parent
0edf1f0c94
commit
c238d3da76
@ -18,10 +18,13 @@ Version 2.0.
|
||||
|
||||
SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0""")
|
||||
|
||||
parser.add_argument('-o', type=argparse.FileType('w'), metavar="OUTFILE",
|
||||
parser.add_argument('-o',
|
||||
type=argparse.FileType('w'),
|
||||
metavar="OUTFILE",
|
||||
required=True,
|
||||
help='output file')
|
||||
parser.add_argument('logfile', type=argparse.FileType('r'),
|
||||
parser.add_argument('logfile',
|
||||
type=argparse.FileType('r'),
|
||||
help='ccache log file')
|
||||
|
||||
args = parser.parse_args()
|
||||
@ -54,6 +57,9 @@ else:
|
||||
width = max(len(_) for _ in results.values()) + 1
|
||||
for k in sorted(counts.keys()):
|
||||
c = counts[k]
|
||||
args.o.write("{:{width}}| {} ({:.2%})\n".format(k, c, c / total, width=width))
|
||||
args.o.write("{:{width}}| {} ({:.2%})\n".format(k,
|
||||
c,
|
||||
c / total,
|
||||
width=width))
|
||||
|
||||
args.o.write("#" * 80 + "\n")
|
||||
|
Loading…
Reference in New Issue
Block a user