)]}'
{
  "commit": "0fb67a2cf68660cbda609ba57f1c179dc6373da3",
  "tree": "fac307b92e9095528341d98fb113d53508eb4473",
  "parents": [
    "f08ffbbf2691bad2d5df660ee644647687775f0c"
  ],
  "author": {
    "name": "Tom Tromey",
    "email": "tom@tromey.com",
    "time": "Fri Sep 21 09:46:35 2018 -0600"
  },
  "committer": {
    "name": "Tom Tromey",
    "email": "tom@tromey.com",
    "time": "Wed Feb 11 07:53:01 2026 -0700"
  },
  "message": "Add .clang-format\n\nThis patch adds a .clang-format file to the gdb repository.\n\nThe resulting reformatting is what I\u0027d describe as \"ok but not great\".\nThere are a few variances from our normal style, some discussed in\ncomments in the file, and some in the bug.\n\nI\u0027ve somewhat come around to the idea that some ugliness is\nacceptable, particularly because I regularly see code that\u0027s already\nugly anyway -- either in formatting or along some other dimension.\n\nI don\u0027t know of a way to enforce a particular version.  I have only\ntried clang-format 18 with this particular file, though Kevin Buettner\nreported trying 19-21 as well.  I\u0027ve documented this in the file.\n\nI used \"AllowShortFunctionsOnASingleLine: InlineOnly\" as previously\ndiscussed.  I feel that the spirit of the GNU style is that vertical\nspace is free, and we should use \"None\" here.  (This goes against\nsomething we previously decided on the list, though.)\n\nThe file is in the root directory for ease of use.\n\nFor the time being you should not bulk reformat files.  I think we\nshould have a flag day for this, but at some later point.  See the\nearlier discussion for details.\n\nNew in v4:\n* Comment fixes\n* Remove ForEachMacros - no longer correct\n* Remove IncludeCategories - no longer correct\n\nNew in v5:\n* More fixes to the comments\n\nNew in v6:\n* Removed \u0027StatementMacros\u0027 setting, we\u0027re no longer using\n  PyObject_HEAD\n\nBug: https://sourceware.org/bugzilla/show_bug.cgi?id\u003d30098\nApproved-by: Kevin Buettner \u003ckevinb@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "fd4f2d951e22b78f6228fdd16d2138a69a472eaa",
      "new_mode": 33188,
      "new_path": ".clang-format"
    },
    {
      "type": "modify",
      "old_id": "7f1c81e00c4ba016515ba5b6c62b6147faddc1a2",
      "old_mode": 33188,
      "old_path": ".gitignore",
      "new_id": "eb44ff7f255cab27aa12cce58696e1ab33c203b7",
      "new_mode": 33188,
      "new_path": ".gitignore"
    }
  ]
}
