This would only work for projects that explicitly enable "parse_headers" feature (or for builds that specify this on command-line) - right now there are none, so this change shouldn't affect most builds. When "parse_headers" is enabled though, it would catch problems of incorrect/missing includes in header-only cc_libraries. See https://bazel.build/docs/bazel-and-cpp#toolchain-features on why this option is a best practice for C++ projects.
11 KiB
11 KiB