Strip ansi codes from LUCI view when reporting clang warnings

It seems like the build team doesn't want to change siso_output to not
capture color codes in the first place (crbug.com/422501397 ). Since
they're annoying to read, we can at least strip them from the LUCI view.

Bug: 419005149
Change-Id: Ic284bc15555ad28f7617c982cb3210a386c25689
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/build/+/6699908
Commit-Queue: Devon Loehr <dloehr@google.com>
Reviewed-by: Ben Pastene <bpastene@chromium.org>
1 file changed
tree: e018de19281f274b34d950ad6ef6c10fca596cfc
  1. hook-scripts/
  2. infra/
  3. recipes/
  4. scripts/
  5. .gitattributes
  6. .gitignore
  7. .style.yapf
  8. .vpython3
  9. .yapfignore
  10. codereview.settings
  11. DEPS
  12. LICENSE
  13. OWNERS
  14. PRESUBMIT.py
  15. README.md
README.md

Recipes

If you're here to make a change to ‘recipes’ (the code located in the recipes directory), please take a look at the README for more information pertaining to recipes.

Style

The preferred style is PEP8 with two-space indent. Functions use lowercase_with_underscores, with the exception of the special functions RunSteps and RunTests in recipes. Use yapf (git cl format --no-clang-format) to autoformat new code.