)]}'
{
  "commit": "8ce4e49a990c0579ca214ab7967139b2ea792133",
  "tree": "f1e1cfbbc2a3f121e6163c8d70a4f81a0b1d1087",
  "parents": [
    "f0b4405f4e0809bcc4bb90644eccae4c806b7cd6"
  ],
  "author": {
    "name": "Julie Hockett",
    "email": "juliehockett@google.com",
    "time": "Mon Jul 02 17:31:48 2018 -0700"
  },
  "committer": {
    "name": "Commit Bot",
    "email": "commit-bot@chromium.org",
    "time": "Tue Jul 10 21:24:32 2018 +0000"
  },
  "message": "[gn] Add --export-compile-commands switch to gen\n\nAdding a command line switch to generate a compilation database\n(compile_commands.json) in the out/ directory. Compilation databases\nare used by clang-based tools (e.g. clang-tidy, clangd, clang-rename).\nCMake already does this with the -DEXPORT_COMPILE_COMMANDS option,\nwhich regenerates the compdb whenever the ninja files are regenerated.\n\nUse:\ngn gen out/\u003cbuilddir\u003e --export-compile-commands\n\nSetting this switch adds ~900ms to the `gn gen` command when run\non Chromium (wihtout --export-compile-commands \u003d\u003d 2.7sec,\nwith --export-compile-commands \u003d\u003d 3.6sec).\n\nChange-Id: Ia3738e340b9de60da62557fb431a68a0618957fb\nReviewed-on: https://gn-review.googlesource.com/2040\nCommit-Queue: Brett Wilson \u003cbrettw@chromium.org\u003e\nReviewed-by: Brett Wilson \u003cbrettw@chromium.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "6fb6dfcf9edc8868b800ffceee5e4bf40f485685",
      "old_mode": 33261,
      "old_path": "build/gen.py",
      "new_id": "eceeafea448d7c17f42a68f0976b31be4033240e",
      "new_mode": 33261,
      "new_path": "build/gen.py"
    },
    {
      "type": "modify",
      "old_id": "eb1b4d29508556bc617e691a47a6bca4c9d7c1f4",
      "old_mode": 33188,
      "old_path": "tools/gn/command_gen.cc",
      "new_id": "d959fe44681b99a5fc3f8c71e005b59918d06f98",
      "new_mode": 33188,
      "new_path": "tools/gn/command_gen.cc"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "772d8d2d7f3e338aa514a8a75e137db0fd09a6d5",
      "new_mode": 33188,
      "new_path": "tools/gn/compile_commands_writer.cc"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "ad98dc289119557343c3c88a49656a9c171caa0b",
      "new_mode": 33188,
      "new_path": "tools/gn/compile_commands_writer.h"
    },
    {
      "type": "modify",
      "old_id": "48982d3373974f2301e06faefe750d451c45007a",
      "old_mode": 33188,
      "old_path": "tools/gn/ninja_binary_target_writer.cc",
      "new_id": "9e5632e7b259c3c1374465f1e45e6aa6c266551f",
      "new_mode": 33188,
      "new_path": "tools/gn/ninja_binary_target_writer.cc"
    },
    {
      "type": "modify",
      "old_id": "4bc5b44c1176ec5cb0ce1f3f886e2c287f260945",
      "old_mode": 33188,
      "old_path": "tools/gn/ninja_binary_target_writer.h",
      "new_id": "5cb7ab5d889c7a31e121e48e86998681b917dc14",
      "new_mode": 33188,
      "new_path": "tools/gn/ninja_binary_target_writer.h"
    },
    {
      "type": "modify",
      "old_id": "6d02a8b524749b87989505f38b71f64a1658697d",
      "old_mode": 33188,
      "old_path": "tools/gn/ninja_binary_target_writer_unittest.cc",
      "new_id": "a0a7ce8fdcad0749d0b93e00af29ca8415670cb7",
      "new_mode": 33188,
      "new_path": "tools/gn/ninja_binary_target_writer_unittest.cc"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "29662cddb83a50feef25f853c727092aff90fbda",
      "new_mode": 33188,
      "new_path": "tools/gn/ninja_target_command_util.cc"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "619add3d20c31d482137624c1b176d2bb383bd1c",
      "new_mode": 33188,
      "new_path": "tools/gn/ninja_target_command_util.h"
    }
  ]
}
