From patchwork Tue Jun 28 12:27:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Thompson X-Patchwork-Id: 12898184 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7C6D6C43334 for ; Tue, 28 Jun 2022 12:27:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345688AbiF1M1s (ORCPT ); Tue, 28 Jun 2022 08:27:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345680AbiF1M1s (ORCPT ); Tue, 28 Jun 2022 08:27:48 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5634725591 for ; Tue, 28 Jun 2022 05:27:47 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id d17so11816132wrc.10 for ; Tue, 28 Jun 2022 05:27:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XecWFv8BJ9dhDMzcKO9+pHi/v+FsHPKm0rD5CDzqQsQ=; b=eMuLBRclklQv7ZkZS+mcJWeuRRJB/06DrG4Wg3av5N283Jo90OYG9na6pIn/03AaT/ quKhbFdkQ4hyjqp+niUXRQ9NIjMSiARtjd8Ut2zrgIyNonrTOxLEefQfON2oGAcW2bp7 wLzI/tvHzckJu9rhEfrz7lgzbnFKBStezvvjjxY9a5xeNawmKYdjRzsHCj9yz6QbJ3Nj bX113jv7AASShx8buwmnkS1KWmf9UXBdTHkHb/9t0irgwQ/MjMSwjxj+Bq6DUYgDZ1tH pRlSUC0aqZtMOtSAld8QJi13nB+CDs8aICnLr3Q/TiG1gGPgcmvnqj6fEe74ZNMRPzUX //Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XecWFv8BJ9dhDMzcKO9+pHi/v+FsHPKm0rD5CDzqQsQ=; b=zl/W3ODo26kuJU0YSonoGwanTI5G3bvIwOyV1KSsRtBHRfYz1f78a8vTx+5g2Zcn8n /ksTGn+oCJyQMIWlGFhAQxVsUReced6cNF9zvmj7Uq0pyTjsEutEE+11L/+87aPiosN5 3nGe4X3ptc+Fk9/1ZG+s+5MyVHesscM0iDaTOuPDd9Nh5Fbs8sKXW1zmC7SA10TXTnET kRHQNanc3B1uqOja1ff0xu1btlWcNrH6nceT6M6WdGRm5gBPak8RXm2YerQScnkqxrsN vf7T5YqQkQ6Vj3HrvhK+XzvwVYWvqNg/Kxr1hDo2axiWMgDd/Guhs7S6oiAjAsOfg8GF Ma7w== X-Gm-Message-State: AJIora+Ad4UBWWi0iJajZoGwdIBO7FPHHPrx+38se6WNEU7D9O491r3G H4av55B7oSapNHtRGM7K/KM6Aw== X-Google-Smtp-Source: AGRyM1tOh42lNgvUY/nPjcoLX2cbYvrNKo9Ve5tYdeDFc+WBu+DfqAKkBLSxlBKNPZvL4BAQe9Z6Xw== X-Received: by 2002:a05:6000:156e:b0:21d:2031:e8fb with SMTP id 14-20020a056000156e00b0021d2031e8fbmr2729134wrz.715.1656419265845; Tue, 28 Jun 2022 05:27:45 -0700 (PDT) Received: from maple.lan (cpc141216-aztw34-2-0-cust174.18-1.cable.virginm.net. [80.7.220.175]) by smtp.gmail.com with ESMTPSA id ay36-20020a05600c1e2400b0039746638d6esm17184212wmb.33.2022.06.28.05.27.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jun 2022 05:27:44 -0700 (PDT) From: Daniel Thompson To: Nathan Chancellor , Tom Rix Cc: Daniel Thompson , Masahiro Yamada , Michal Marek , Nick Desaulniers , linux-kbuild@vger.kernel.org, llvm@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] Enable clang tools for kernels build using gcc Date: Tue, 28 Jun 2022 13:27:38 +0100 Message-Id: <20220628122741.93641-1-daniel.thompson@linaro.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org This patch set makes it possible to use clang based tools, such as the clangd completion engine, regardless of our choice of compiler for the actual kernel build. Most of the fine details are included in the patch header for the first patch (since we'd like them to appear in the kernel history so they can help future archaeologists). Daniel Thompson (2): clang-tools: Generate clang compatible output even with gcc builds Makefile: Enable clang-tidy and clang-analyzer for gcc builds Makefile | 11 ++-- scripts/clang-tools/gen_compile_commands.py | 71 ++++++++++++++++++++- 2 files changed, 74 insertions(+), 8 deletions(-) base-commit: a111daf0c53ae91e71fd2bfe7497862d14132e3e --- 2.35.1