Since bazel doesn't automatically build headers in isolation unless you
enable parse_headers (which only recently works at all), headers may not
pass clang-tidy in isolation. This adds a new no-clang-tidy-headers
tag that can be added to libraries so that only their source files are
clang-tidy'd
Thanks! merged. I think it is wasteful to check the extension multiple types (in check_valid_file_types and at the end), perhaps those two should be merged.
Since bazel doesn't automatically build headers in isolation unless you enable parse_headers (which only recently works at all), headers may not pass clang-tidy in isolation. This adds a new
no-clang-tidy-headers
tag that can be added to libraries so that only their source files are clang-tidy'd