Show a patch.

GET /api/patches/26708/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 26708,
    "url": "https://patchwork.libcamera.org/api/patches/26708/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/26708/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/projects/1/?format=api",
        "name": "libcamera",
        "link_name": "libcamera",
        "list_id": "libcamera_core",
        "list_email": "libcamera-devel@lists.libcamera.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20260509210758.F3F7F1EA006C@mailuser.phl.internal>",
    "date": "2026-05-09T21:06:56",
    "name": "clangd: add compilation database configuration",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": false,
    "hash": "caa69fb62cc4f1f8e3e78fc8fcd1fff3a7b70221",
    "submitter": {
        "id": 261,
        "url": "https://patchwork.libcamera.org/api/people/261/?format=api",
        "name": "Javier Tia",
        "email": "floss@jetm.me"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/26708/mbox/",
    "series": [
        {
            "id": 5930,
            "url": "https://patchwork.libcamera.org/api/series/5930/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=5930",
            "date": "2026-05-09T21:06:56",
            "name": "clangd: add compilation database configuration",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/5930/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/26708/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/26708/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<libcamera-devel-bounces@lists.libcamera.org>",
        "X-Original-To": "parsemail@patchwork.libcamera.org",
        "Delivered-To": "parsemail@patchwork.libcamera.org",
        "Received": [
            "from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id E7116BDCBD\n\tfor <parsemail@patchwork.libcamera.org>;\n\tSat,  9 May 2026 21:08:03 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 143E962FEA;\n\tSat,  9 May 2026 23:08:03 +0200 (CEST)",
            "from fout-b3-smtp.messagingengine.com\n\t(fout-b3-smtp.messagingengine.com [202.12.124.146])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id B179362FB1\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat,  9 May 2026 23:08:00 +0200 (CEST)",
            "from phl-compute-02.internal (phl-compute-02.internal\n\t[10.202.2.42])\n\tby mailfout.stl.internal (Postfix) with ESMTP id 99B3A1D0005C;\n\tSat,  9 May 2026 17:07:59 -0400 (EDT)",
            "from phl-imap-07 ([10.202.2.97])\n\tby phl-compute-02.internal (MEProxy); Sat, 09 May 2026 17:07:59 -0400",
            "by mailuser.phl.internal (Postfix, from userid 501)\n\tid F3F7F1EA006C; Sat,  9 May 2026 17:07:58 -0400 (EDT)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (2048-bit key;\n\tunprotected) header.d=jetm.me header.i=@jetm.me header.b=\"hMJOvMQR\";\n\tdkim=pass (2048-bit key;\n\tunprotected) header.d=messagingengine.com\n\theader.i=@messagingengine.com header.b=\"O2+0+CPX\"; \n\tdkim-atps=neutral",
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=jetm.me; h=cc\n\t:content-transfer-encoding:content-type:content-type:date:date\n\t:from:from:in-reply-to:message-id:mime-version:reply-to:subject\n\t:subject:to:to; s=fm2; t=1778360879; x=1778447279; bh=C2d18BJNBn\n\tLQEIm9aZsxflA2WNBJbvAm5XMc9XFNBD8=; b=hMJOvMQRB+mtVqBpSQYtxFiwRj\n\tLt4SZ8llQ6aFvw24RKK2pLHLI7dmvot1q15mASG0o3GdPdRpaz7weKNTDLNEC8uT\n\thKm6pL633jWF126ngn6l1KKUtdFlxrGwmjRTKbo5VZX7MHftjaDba0DxvY/JyAvI\n\tOnGI4R03P0J6ESJJ6NakNkeUxDWLxCWnM/4QW6U07W/pGXqkZK2AMgFL9QjevMJv\n\tZg46w3CPiaBN0AL5qIiYZrGa0wz0EoVbxM2mYLCCZCni9zxJ3p9Qvf0J8PlMuz9V\n\tcATqPDqBE9GBgIQ151BrQtrY10EAgMQHxAd7oBdGmX6tqaXOgGPBWyrJXpaw==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=\n\tmessagingengine.com; h=cc:content-transfer-encoding:content-type\n\t:content-type:date:date:feedback-id:feedback-id:from:from\n\t:in-reply-to:message-id:mime-version:reply-to:subject:subject:to\n\t:to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=\n\t1778360879; x=1778447279; bh=C2d18BJNBnLQEIm9aZsxflA2WNBJbvAm5XM\n\tc9XFNBD8=; b=O2+0+CPXjbqXCoQf5HCLwjO9fgFb+P8e94Yt1XJ7Mt1y2/P5QrB\n\tBDIc3wJiQZBQx+C+ToVAXT9PZYERXUpA0K7DTJ8VnI+LL4GFDXs21j9Rxx0ArW6+\n\trAQTjLluW2tmp+/clO8YcW7t9v8MiGekAEef7p3tmWhTZSkbKTuuKDJzqK2UTa0o\n\tQJtP4aCfODHnAaK88Ot7ylwFvV++wL9mmXbOsNZzE99VQX8yBMhqqeCDrQPRiD8H\n\thw9t+oEOot+P8df+iY7jQ6yOaJHkpSg7T35pOM6AmXKzZ21L8j9pLWLb46zvD047\n\ttwZJrkoBFRHIsDBcq+DnMuWvgFoRlvOBqjw=="
        ],
        "X-ME-Sender": "<xms:L6L_acjh78FV3bxkeO151AR4GvKAr3LqWDTl7LICh07b4qC2luNb0g>\n\t<xme:L6L_af2l64eItNoGx_WMhxhDVMXaZKi9KBzM1yjzhkI44NvODqUb5tak87-2IoSgf\n\txW_Hm94rS9ntv96ppljgAhbcFCy8FSzYZwHVmh-aDpiVnNSF-n7vYI>",
        "X-ME-Proxy-Cause": "gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdduudegvdejucetufdoteggodetrf\n\tdotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu\n\trghilhhouhhtmecufedttdenucgopfhokfffucdluddtmdenucfjughrpefotggggffhvf\n\tffufesthektddtredtjeenucfhrhhomheplfgrvhhivghrucfvihgruceofhhlohhsshes\n\tjhgvthhmrdhmvgeqnecuggftrfgrthhtvghrnhepffdvfeetleduhedvhfejvddvieekff\n\tehtdegkeegudefieejheehudehhfevjedtnecuvehluhhsthgvrhfuihiivgeptdenucfr\n\trghrrghmpehmrghilhhfrhhomhepfhhlohhsshesjhgvthhmrdhmvgdpnhgspghrtghpth\n\thtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepfhhlohhsshesjhgvthhm\n\trdhmvgdprhgtphhtthhopehlihgstggrmhgvrhgrqdguvghvvghlsehlihhsthhsrdhlih\n\tgstggrmhgvrhgrrdhorhhg",
        "X-ME-Proxy": "<xmx:L6L_afNKlmeMqXaeonhX2cR7ZPM8mZL7B4KLG47pu8uXQ0NVQzoeMw>\n\t<xmx:L6L_aX6EMhz3hbaxczvFnTKZb1Un-1pEhnAqN1S3ybgfaZBBYwDqkg>\n\t<xmx:L6L_aV0berYIObKGcg8nHeygtjiFH1ElmvmXgio7p4cHYSWpTXqF2g>\n\t<xmx:L6L_aQYg5-NxgCfI0rAqN3Oo5YRza9DXw4DWf6_tepFTvm4uROEODQ>\n\t<xmx:L6L_aR9mwR2RdbuKUYz2BAQ9MLsaa-5tL1SSLFXb6o7PC7zYfjnVRTel>",
        "Feedback-ID": "i9dde48b3:Fastmail",
        "X-Mailer": "MessagingEngine.com Webmail Interface",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "From": "Javier Tia <floss@jetm.me>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Sat, 09 May 2026 15:06:56 -0600",
        "Subject": "[PATCH] clangd: add compilation database configuration",
        "Message-Id": "<20260509210758.F3F7F1EA006C@mailuser.phl.internal>",
        "X-BeenThere": "libcamera-devel@lists.libcamera.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "<libcamera-devel.lists.libcamera.org>",
        "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>",
        "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>",
        "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>",
        "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "Without this, clangd cannot find build-generated headers such as\nbuild/src/libcamera/tracepoints.h and build/config.h, causing spurious\ndiagnostics for any file that includes them.\n\nbuild/ is the project-canonical build directory, already listed in\n.gitignore and used in the contributing documentation. Developers using\na custom build directory can place a local .clangd override; if build/\nis absent, clangd falls back to its normal heuristics with no regression.\n\nSigned-off-by: Javier Tia <floss@jetm.me>\n---\n .clangd | 2 ++\n 1 file changed, 2 insertions(+)\n create mode 100644 .clangd",
    "diff": "diff --git a/.clangd b/.clangd\nnew file mode 100644\nindex 00000000..e95990a8\n--- /dev/null\n+++ b/.clangd\n@@ -0,0 +1,2 @@\n+CompileFlags:\n+  CompilationDatabase: build/\n",
    "prefixes": []
}