Skip to content

Commit

Permalink
Apply clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
github action committed Jun 6, 2021
1 parent 0edf1f0 commit c238d3d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions bin/verilator_ccache_report
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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")

0 comments on commit c238d3d

Please sign in to comment.