)]}'
{
  "commit": "4f47ed2c9aec22d5a5b93d4ce3fc201d6387d803",
  "tree": "cefc77dbd6f33da7a6a2fd92d977fe6a338ee494",
  "parents": [
    "fca348296f3432f9a7d4d0b62bb62bc68859c1ca"
  ],
  "author": {
    "name": "Vy Nguyen",
    "email": "oontvoo@users.noreply.github.com",
    "time": "Wed Oct 27 07:52:57 2021"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Wed Oct 27 07:52:57 2021"
  },
  "message": "[RFC] Adding API for setting/getting benchmark_filter flag? (#1254)\n\n* [RFC] Adding API for setting/getting benchmark_filter flag?\r\n\r\nThis PR is more of a Request-for-comment - open to other ideas/suggestions as well.\r\n\r\nDetails:\r\nThis flag has different implementations(absl vs benchmark) and since the proposal to add absl as a dependency was rejected, it would be nice to have a reliable (and less hacky) way to access this flag internally.\r\n(Actually, reading it isn\u0027t much a problem but setting it is).\r\n\r\nInternally, we have a sizeable number users to use absl::SetFlags to set this flag. This will not work with benchmark-flags.\r\n\r\nAnother motivation is that not all users use the command line flag. Some prefer to programmatically set this value.\r\n\r\n* fixed build errors\r\n\r\n* fix lints again\r\n\r\n* per discussion: add additional RunSpecifiedBenchmarks instead.\r\n\r\n* add tests\r\n\r\n* fix up tests\r\n\r\n* clarify comment\r\n\r\n* fix stray : in test\r\n\r\n* more assertion in test\r\n\r\n* add test file to test/CMakeLists.txt\r\n\r\n* more test\r\n\r\n* make test ISO C++ compliant\r\n\r\n* fix up BUILD file to pass the flag",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "17145559603d545a8081d242e3335881376926b0",
      "old_mode": 33188,
      "old_path": "include/benchmark/benchmark.h",
      "new_id": "12e879ea850bf3baee8054089b2220dba40e03a8",
      "new_mode": 33188,
      "new_path": "include/benchmark/benchmark.h"
    },
    {
      "type": "modify",
      "old_id": "28d9368efe18db26a5c50f2821ab3ad2bccf19cb",
      "old_mode": 33188,
      "old_path": "src/benchmark.cc",
      "new_id": "e7b96ca5854208a88b401bc37a5d000c4fb8847e",
      "new_mode": 33188,
      "new_path": "src/benchmark.cc"
    },
    {
      "type": "modify",
      "old_id": "1f27f99ede9f3c8202b98da445419d09401b3184",
      "old_mode": 33188,
      "old_path": "test/BUILD",
      "new_id": "df700a7a8100e5106cd90b4122572cd0d23c68cb",
      "new_mode": 33188,
      "new_path": "test/BUILD"
    },
    {
      "type": "modify",
      "old_id": "79cdf53b402c89e3ec03832202f05e92f5b25d4b",
      "old_mode": 33188,
      "old_path": "test/CMakeLists.txt",
      "new_id": "0f7b265d8e206f36a790d064dd8376174587a24b",
      "new_mode": 33188,
      "new_path": "test/CMakeLists.txt"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "f1f0543e41668f8197b4fe9272ddbf1649bcd6cd",
      "new_mode": 33188,
      "new_path": "test/spec_arg_test.cc"
    }
  ]
}
