)]}'
{
  "commit": "3ebed51e997b2a517eecb53a78cc0b6ffcdc00a3",
  "tree": "5875ed0140fdc610768d2e76b2f71ff231b5eca0",
  "parents": [
    "fa5cd27ef0fc0b2c17a58407851e0aa0522d788b"
  ],
  "author": {
    "name": "Dan Liew",
    "email": "dan@su-root.co.uk",
    "time": "Tue Nov 04 16:25:33 2025 -0800"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Nov 04 16:25:33 2025 -0800"
  },
  "message": "[Clang][LLDB] Refactor trap reason demangling out of LLDB and into Clang (#165996)\n\nThis patch refactors the trap reason demangling logic in\n`lldb_private::VerboseTrapFrameRecognizer::RecognizeFrame` into a new\npublic function `clang::CodeGen::DemangleTrapReasonInDebugInfo`.\n\nThere are two reasons for doing this:\n\n1. In a future patch the logic for demangling needs to be used somewhere\nelse in LLDB and thus the logic needs refactoring to avoid duplicating\ncode.\n2. The logic for demangling shouldn\u0027t really be in LLDB anyway because\nit\u0027s a Clang implementation detail and thus the logic really belongs\ninside Clang, not LLDB.\n\nUnit tests have been added for the new function that demonstrate how to\nuse the new API.\n\nThe function names recognized by VerboseTrapFrameRecognizer are\nidentical to before. However, this patch isn\u0027t NFC because:\n\n* The `lldbTarget` library now links against `clangCodeGen` which it\ndidn\u0027t previously.\n* The LLDB logging output is a little different now. The previous code\ntried to log failures for an invalid regex pattern and for the\n`Regex::match` API not returning the correct number of matches. These\nfailure conditions are unreachable via unit testing so they have been\nmade assertions failures inside the `DemangleTrapReasonInDebugInfo`\nimplementation instead of trying to log them in LLDB.\n\nrdar://163230807",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "f1b8229edd362e3e542819f0d4d471b7c637f054",
      "old_mode": 33188,
      "old_path": "clang/include/clang/CodeGen/ModuleBuilder.h",
      "new_id": "4298ba06c472ecd6459cb373ed1f53b4d750b51f",
      "new_mode": 33188,
      "new_path": "clang/include/clang/CodeGen/ModuleBuilder.h"
    },
    {
      "type": "modify",
      "old_id": "96f3f6221e20f3cfcd6820c622c5a74158a0eb0e",
      "old_mode": 33188,
      "old_path": "clang/lib/CodeGen/ModuleBuilder.cpp",
      "new_id": "8ec8aef3116565a49c2a6e744b9dd461ac753b23",
      "new_mode": 33188,
      "new_path": "clang/lib/CodeGen/ModuleBuilder.cpp"
    },
    {
      "type": "modify",
      "old_id": "f5bcecb0b08a3156bba7f0df4e73fb06ed7ebb41",
      "old_mode": 33188,
      "old_path": "clang/unittests/CodeGen/CMakeLists.txt",
      "new_id": "d4efb2230a054aeae649917eddf0b6668350385c",
      "new_mode": 33188,
      "new_path": "clang/unittests/CodeGen/CMakeLists.txt"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "17bfe17c31d65774066fd4d8cc3ad2dca419440e",
      "new_mode": 33188,
      "new_path": "clang/unittests/CodeGen/DemangleTrapReasonInDebugInfo.cpp"
    },
    {
      "type": "modify",
      "old_id": "a27bceffe2e3ad0fe37b599e75c684121b355a9c",
      "old_mode": 33188,
      "old_path": "lldb/source/Plugins/LanguageRuntime/CPlusPlus/CMakeLists.txt",
      "new_id": "727c8290bceb429c1d000f106410d4bfe892a3b1",
      "new_mode": 33188,
      "new_path": "lldb/source/Plugins/LanguageRuntime/CPlusPlus/CMakeLists.txt"
    },
    {
      "type": "modify",
      "old_id": "730aba5b42a3ef8ee2106ee4900833edbf9ef579",
      "old_mode": 33188,
      "old_path": "lldb/source/Plugins/LanguageRuntime/CPlusPlus/VerboseTrapFrameRecognizer.cpp",
      "new_id": "2b6bf2cd470e6f3b8d47ca4ddfeee4b7af64cd28",
      "new_mode": 33188,
      "new_path": "lldb/source/Plugins/LanguageRuntime/CPlusPlus/VerboseTrapFrameRecognizer.cpp"
    }
  ]
}
