Apply clang-format

This commit is contained in:
github action 2021-06-06 23:57:41 +00:00
parent 0edf1f0c94
commit c238d3da76

View File

@ -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")