When iterating through the last line of cpplint_data, which is
'Total errors found: xx', after executing entry = entry.split(':'), the
length of entry is 2. If continue to execute msg = entry[2].rstrip(),
an error will occur: IndexError: list index out of range."
Bug: 1200694
Change-Id: I6917445f072cf45d790303807c00be2e1d20d975
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5051566
Commit-Queue: Nico Weber <thakis@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1229119}
This is a simple tool to fix header guards using cpplint's
build/header_guard recommendations. Since cpplint already reliably does
the work to make these recommendations, it is much easier to just apply
them with this tool than to use clang-tidy, which requires compilation.
Bug: 1200694
Change-Id: I3fe82d6e0330dd3d3aeee073067f77f8338bed67
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2837571
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#874555}