)]}'
{
  "commit": "ebd996fd37eaa710fd5d90e1bfd1bcddafcac067",
  "tree": "21d53940fa0e7e7e093992109bf6696130c0f165",
  "parents": [
    "b50a797b7dea422992b49424440167cd60ef4574"
  ],
  "author": {
    "name": "Googler",
    "email": "noreply@google.com",
    "time": "Tue Oct 20 01:43:20 2026 -0700"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Tue Oct 20 01:44:06 2026 -0700"
  },
  "message": "Implement target allowlists in addition to package allowlists for disallowed copts policies.\n\nImplement the design changes specified in design_banned_warnings.md and\ndesign_modular_copts_policies.md:\n- Update CcDisallowedCoptsInfo to provide package_allowlist, target_allowlist, and policy_label.\n- Update cc_copts_policy to accept package_allowlist and target_allowlist.\n- Update tools/cpp/policy/banned_warnings/BUILD to use package_allowlist.\n- Update third_party/crosstool/v18/stable/crosstool_configuration.bzl and third_party/apple_crosstool/crosstool.bzl to forward package_allowlist, target_allowlist, and policy_label.\n- Update cc_helper.bzl to exempt targets matching entries in package_allowlist and target_allowlist, and emit \"disallowed by \u0027\u003cpolicy_label\u003e\u0027\" in violation messages.\n- Add and update unit tests in tools/cpp/policy/ and third_party/bazel_rules/rules_cc/tests/cc/common/.\n\nStartblock:\n  - BTRGuardian allows unknown commit\n\nStartblock:\n  * // Put other blockers before this line to avoid churning.\n  * has lgtm\n  * is approved\n  * and then\n  * all comments are resolved\n  * and then\n  *[] allows unknown commit\nPiperOrigin-RevId: 1002924230\nChange-Id: I35d1aefd0e0ecc47c81fa45c62481d534ca95a3f\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a8f7619f3f259209da855fc7459a636beaf40ca7",
      "old_mode": 33188,
      "old_path": "cc/common/cc_helper.bzl",
      "new_id": "ad009a74228bdadc258ff73065c28965c643ae34",
      "new_mode": 33188,
      "new_path": "cc/common/cc_helper.bzl"
    },
    {
      "type": "modify",
      "old_id": "6620454c5f58c16b56a7fa52a100465873b1253d",
      "old_mode": 33188,
      "old_path": "tests/cc/common/disallowed_copts_test.bzl",
      "new_id": "6384acb3a3a7f26b2493a7d18b1706901aacd817",
      "new_mode": 33188,
      "new_path": "tests/cc/common/disallowed_copts_test.bzl"
    },
    {
      "type": "modify",
      "old_id": "5557975f8b96ef85d61e44669fe0e46529a89818",
      "old_mode": 33188,
      "old_path": "tests/cc/testutil/cc_analysis_test.bzl",
      "new_id": "53fb8566c79df5652f7e8fd8a2145b3faa42282e",
      "new_mode": 33188,
      "new_path": "tests/cc/testutil/cc_analysis_test.bzl"
    },
    {
      "type": "modify",
      "old_id": "3c750cdf1a865b8029e63bec91860fbfcb87428b",
      "old_mode": 33188,
      "old_path": "tests/cc/testutil/toolchains/BUILD",
      "new_id": "4894971f834a61f1dd87c6d0d483d0d31a810d1b",
      "new_mode": 33188,
      "new_path": "tests/cc/testutil/toolchains/BUILD"
    },
    {
      "type": "modify",
      "old_id": "3ed8bbb70b8820d891ebc8aafe1320d4b8bf73d0",
      "old_mode": 33188,
      "old_path": "tests/cc/testutil/toolchains/cc_toolchain_config.bzl",
      "new_id": "a9233474b192c7382d7705cab104e649344a5b99",
      "new_mode": 33188,
      "new_path": "tests/cc/testutil/toolchains/cc_toolchain_config.bzl"
    }
  ]
}
