This patch adds a -warnings-as-errors option to run_clang_tidy.py, which is forwarded to clang-tidy itself. This is done similar to the -header-filter option (as well as some others).
The rationale behind this is that previously, promoting warnings to errors when using run_clang_tidy was only possible through the .clang-tidy file and the -config option (which, however, overrides what is specified in .clang-tidy) and thus could not be changed without modifying this file. This comes in handy e. g. for CI, when you want the run to fail if certain warnings are emitted.
s/py/by