Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3988211iog; Tue, 28 Jun 2022 06:56:45 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s5ooBrPcQMPBWr+dXEP5bXgY6lq7vlITd4NAn2iZPmVAMlGG3YjcjjHN7sSf5oOVnu3J6M X-Received: by 2002:a17:90b:354c:b0:1ec:9ef2:8a0e with SMTP id lt12-20020a17090b354c00b001ec9ef28a0emr28323575pjb.72.1656424605288; Tue, 28 Jun 2022 06:56:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656424605; cv=none; d=google.com; s=arc-20160816; b=hHu3EQKrIlhDT4NLp0P5WXgauuFtlfOS9lXWa9RpWWk8JxrlxCdVD7LXbWMxeOKEKt e23TezOdlpD8VbP9PI08gSyaYlr16cSUfrtmeAY+ho6Jz0bROg/kgbbz0eEKvP7YgGgv TrKOzHI5wQ5folLTaJc05arAWncSkiOqaTdmCYmAcqVMAJHlO68F1NwU2jxWoYMPeaPx dVHhIc9qQYU+txKtjiihtHjedzpRSbv4yhhS++XnFMy675f22rWDNZRwReX+GIk0TNQ3 3l3CKnlh8gHAVBsnJSKdkt9YU3fd2/P8VM3nxNla0512PjI+RhNSBNGSCMwyV0piWGLw jZOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=qtr8/zsHx2lgXvXWLguSyb54C2tIRyCmz4eBKyNcZb0=; b=Ts5vz0vFDeki9aUHnjajSprIH2bh1+Yj1QZDGRHeZd+k5YXoDfpsRC1qZC3yO6kU2K IdHLE1ptp9ghwudnbFJNk/qRYfjjro27afOODaEWfjKC6FLxmxn0d4tmOL/SjL+u1aCj ixp7cJFzPsnkyiUo5dAY8knaj2NkEdjE2tZRoHQid/yQ0HiZB2YdcRIkdobX9cqD+VrJ m/7pJLGnkoBswTPaKGifeHuBGrOTnQK49XR+hKvfj44/kq9Ehkqho6EV0qkxJTVJtDrd kdrgAo+qsJ+nYvmoURSSa3tlIo/zaoKxSssbCrQMMk8gmexau/KQtZDh6qyDeSVqAxXy bXFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FanQX8fb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i5-20020a170902c94500b001659bb37e19si18645959pla.231.2022.06.28.06.56.33; Tue, 28 Jun 2022 06:56:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FanQX8fb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345935AbiF1NVe (ORCPT + 99 others); Tue, 28 Jun 2022 09:21:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346326AbiF1NVM (ORCPT ); Tue, 28 Jun 2022 09:21:12 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E830835AAF for ; Tue, 28 Jun 2022 06:19:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1656422356; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qtr8/zsHx2lgXvXWLguSyb54C2tIRyCmz4eBKyNcZb0=; b=FanQX8fbKAboMUhwWZK6X5rjtORLcIMo9+N9BuYj415/quB7NPo1s6G8qlwhkzPUTbVFQz mCQ8oDaX8SYWNTB3GMW2CNhEfLHRkCkHSD+feFRf9RgglzlHLsPPZWvi6CszggkY/PXk3V ZfGByGtIswFMDbvwUNK+MciAK5dO/qs= Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-138-zZ6o1MKUNDSMQK_WKH0PCw-1; Tue, 28 Jun 2022 09:19:15 -0400 X-MC-Unique: zZ6o1MKUNDSMQK_WKH0PCw-1 Received: by mail-qv1-f71.google.com with SMTP id mz4-20020a0562142d0400b004726d99aa49so4955229qvb.10 for ; Tue, 28 Jun 2022 06:19:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=qtr8/zsHx2lgXvXWLguSyb54C2tIRyCmz4eBKyNcZb0=; b=c/H7GL3k6lt7Parr4UWg7hA5hrJZCDcgkRbeMvKfIKno8uT4mWGSL48gp+hA2RzkdQ BxzZjzq0wGXVuRuiRTH+ELQI5nGIqX+JJhjIqwgOjMmNKzh+UUKVy50k9iim/soSkNvN tby4dhb7zEva0g1zASkdQsOVDctsW4q4nggAd7GXcqY/FBrbuhm9SoBglKR7DfYKWT6s 176vhhuNQRIDhQF7nCbsCF0d3plKQeENWJL58+Kd11R5kMu2273iU76CMMqnpUSpgFu+ eSLEwz1m3gjGKJCU2A7TGN9eCA6hYZyVY/VWVUY84v7FsCXyZ26bT+aQsJZXJIBxih9L PWCA== X-Gm-Message-State: AJIora9bOk6JADrsy8e1tSuQJKo7g74g6MKz9Q+hIopEWsJXnIOI3wcp W8ohiNMRybNzR3Su8guPIZRv/PPP6qL8cOsTxvMR0HiewbE1qzke7H4wyaZejiynBdgus/qNHIu qK3STWtKa2Ke+CoTXZ6n1fjtSNLzU+Ojs7gUVjmKPB1MZZIJVBqAJQ0LCpy+/RnxRUi1g7vc= X-Received: by 2002:a05:620a:2629:b0:6ae:f26f:4a6f with SMTP id z41-20020a05620a262900b006aef26f4a6fmr11211907qko.525.1656422354185; Tue, 28 Jun 2022 06:19:14 -0700 (PDT) X-Received: by 2002:a05:620a:2629:b0:6ae:f26f:4a6f with SMTP id z41-20020a05620a262900b006aef26f4a6fmr11211875qko.525.1656422353898; Tue, 28 Jun 2022 06:19:13 -0700 (PDT) Received: from localhost.localdomain (024-205-208-113.res.spectrum.com. [24.205.208.113]) by smtp.gmail.com with ESMTPSA id ay42-20020a05620a17aa00b006af3bc9c6bbsm3262520qkb.52.2022.06.28.06.19.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Jun 2022 06:19:13 -0700 (PDT) Subject: Re: [PATCH 0/2] Enable clang tools for kernels build using gcc To: Daniel Thompson , Nathan Chancellor Cc: Masahiro Yamada , Michal Marek , Nick Desaulniers , linux-kbuild@vger.kernel.org, llvm@lists.linux.dev, linux-kernel@vger.kernel.org References: <20220628122741.93641-1-daniel.thompson@linaro.org> From: Tom Rix Message-ID: <0478d832-d902-69ed-7c1c-4f19d942cddf@redhat.com> Date: Tue, 28 Jun 2022 06:19:09 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20220628122741.93641-1-daniel.thompson@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The limitations of the compilation db are not limited to the kernel. Why shouldn't the change be made in the llvm project ? Tom On 6/28/22 5:27 AM, Daniel Thompson wrote: > 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 >