)]}'
{
  "commit": "11976124184a79bfecaedf6ff5cbf2f17f815a21",
  "tree": "dd3628af2288b857387e45695be15c83400ef9b4",
  "parents": [
    "4d19de1c63961e3e75ee69cbd986557ecfab5afe"
  ],
  "author": {
    "name": "Fabian Meumertzheim",
    "email": "fabian@meumertzhe.im",
    "time": "Thu Oct 22 01:27:51 2026 -0700"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Thu Oct 22 01:28:30 2026 -0700"
  },
  "message": "Exclude cpp_module_codegen from source_compile_actions (#897)\n\nModule codegen actions compile a precompiled module into an object file and never preprocess. Bazel\u0027s legacy `include_paths`, `includes` and `preprocessor_defines` features accordingly don\u0027t cover the `cpp_module_codegen` action, but their rules-based counterparts (`//cc/toolchains/args/include_flags` and `//cc/toolchains/args/preprocessor_defines`, as well as the corresponding variables) apply to `source_compile_actions`, which does. Every module codegen action thus receives the include paths and defines of compile actions, and Clang warns about each include path as an unused argument (`clang++: warning: argument unused during compilation: \u0027-iquote .\u0027 [-Wunused-command-line-argument]`).\n\nThis excludes the action from `source_compile_actions` like `lto_backend` already is, which restores parity with the legacy features.\n\nCloses #897\n\nCOPYBARA_INTEGRATE_REVIEW\u003dhttps://github.com/bazelbuild/rules_cc/pull/897 from fmeum:codegen-no-preprocessing-flags 1157d3784791939390992a0a840e1e91f935866d\nPiperOrigin-RevId: 1004579515\nChange-Id: I51f7f91172ae614876080794a59278ca22faafcd\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "80cac26b2be705414a710b1a893f8da3b58c7b10",
      "old_mode": 33188,
      "old_path": "cc/toolchains/actions/BUILD",
      "new_id": "cbf9395354c9556c626f5642961e03c22870b2ba",
      "new_mode": 33188,
      "new_path": "cc/toolchains/actions/BUILD"
    },
    {
      "type": "modify",
      "old_id": "e039c97e75c7bc003b01abcf093c2935a7d62a17",
      "old_mode": 33188,
      "old_path": "tests/rule_based_toolchain/action_type_sets/goldens/source_compile_actions.txt",
      "new_id": "c59b6f5939e6472f393d3bd688719ee62a2c20c0",
      "new_mode": 33188,
      "new_path": "tests/rule_based_toolchain/action_type_sets/goldens/source_compile_actions.txt"
    }
  ]
}
