)]}'
{
  "commit": "d3038b516613b9406302d935c98706ee51d0b57f",
  "tree": "11964483c3edbda3193338887ab225204628ddf7",
  "parents": [
    "ec5f2ac4055ac92df546366867075d60762acf1e"
  ],
  "author": {
    "name": "Björn Svensson",
    "email": "bjorn.a.svensson@est.tech",
    "time": "Thu Dec 07 20:55:17 2023 +0100"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Thu Dec 07 12:00:21 2023 -0800"
  },
  "message": "[clang-tidy] Add check hicpp-ignored-remove-result (#73119)\n\nThis check implements the [rule\n17.5.1](https://www.perforce.com/resources/qac/high-integrity-cpp-coding-standard/standard-library)\nof the HICPP standard which states:\n\n- Do not ignore the result of std::remove, std::remove_if or std::unique\n\nThe mutating algorithms std::remove, std::remove_if and both overloads\nof std::unique operate by swapping or moving elements of the range they\nare operating over. On completion, they return an iterator to the last\nvalid element. In the majority of cases the correct behavior is to use\nthis result as the first operand in a call to std::erase.\n\nThis check is based on `bugprone-unused-return-value` but with a fixed\nset of functions.\n\nSuppressing issues by casting to `void` is enabled by default, but can\nbe disabled by setting `AllowCastToVoid` option to `false`.\n\nGitOrigin-RevId: 3ed940ac3dac03d044a8d1e51005cec84dd128f9\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "6bc9f2dd367dcbd978d9658cc10bad500b9ea78f",
      "old_mode": 33188,
      "old_path": "clang-tidy/bugprone/UnusedReturnValueCheck.cpp",
      "new_id": "05012c7df6a97585762f1777f319bfd1f762aa27",
      "new_mode": 33188,
      "new_path": "clang-tidy/bugprone/UnusedReturnValueCheck.cpp"
    },
    {
      "type": "modify",
      "old_id": "b4356f8379fdc85fab5116717a10453a38378429",
      "old_mode": 33188,
      "old_path": "clang-tidy/bugprone/UnusedReturnValueCheck.h",
      "new_id": "ab2cc691b894f7b08442d9d3d6410f0b3a70502a",
      "new_mode": 33188,
      "new_path": "clang-tidy/bugprone/UnusedReturnValueCheck.h"
    },
    {
      "type": "modify",
      "old_id": "d12ca275d39647f66038a340e2b4a182fe7e084b",
      "old_mode": 33188,
      "old_path": "clang-tidy/hicpp/CMakeLists.txt",
      "new_id": "132fbaccccf8a9c59c1effd0cd674a6bc650b6e2",
      "new_mode": 33188,
      "new_path": "clang-tidy/hicpp/CMakeLists.txt"
    },
    {
      "type": "modify",
      "old_id": "3749796877120ed0538f8680829291ddda51978d",
      "old_mode": 33188,
      "old_path": "clang-tidy/hicpp/HICPPTidyModule.cpp",
      "new_id": "daa9f398a740ed2624fd9be29f25208b21d5b95d",
      "new_mode": 33188,
      "new_path": "clang-tidy/hicpp/HICPPTidyModule.cpp"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "3410559d435f6385633d5394dad0ec19c5484212",
      "new_mode": 33188,
      "new_path": "clang-tidy/hicpp/IgnoredRemoveResultCheck.cpp"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "48354c34a8581a49ce5a91d741a3751c4bfcfaf9",
      "new_mode": 33188,
      "new_path": "clang-tidy/hicpp/IgnoredRemoveResultCheck.h"
    },
    {
      "type": "modify",
      "old_id": "9262f9bbfe62a76fa118f9d2a43cee208a3e5329",
      "old_mode": 33188,
      "old_path": "docs/ReleaseNotes.rst",
      "new_id": "6d91748e4cef18c7329b2ded0e68125500f44847",
      "new_mode": 33188,
      "new_path": "docs/ReleaseNotes.rst"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "6ca704ae3e66c71d2b7c1352a7fa164b0195cd70",
      "new_mode": 33188,
      "new_path": "docs/clang-tidy/checks/hicpp/ignored-remove-result.rst"
    },
    {
      "type": "modify",
      "old_id": "e6c02fe48fbf86c465d05b0cf61b9c10743b2068",
      "old_mode": 33188,
      "old_path": "docs/clang-tidy/checks/list.rst",
      "new_id": "31f0e090db1d7de7d39a540e50a0131f96b9db91",
      "new_mode": 33188,
      "new_path": "docs/clang-tidy/checks/list.rst"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "b068f08590989394dc5702f310515d9c4b7f8793",
      "new_mode": 33188,
      "new_path": "test/clang-tidy/checkers/hicpp/ignored-remove-result.cpp"
    }
  ]
}
