From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-il1-x133.google.com (mail-il1-x133.google.com [IPv6:2607:f8b0:4864:20::133]) by sourceware.org (Postfix) with ESMTPS id 8741D3858C42 for ; Thu, 18 Jan 2024 09:18:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8741D3858C42 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8741D3858C42 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::133 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705569525; cv=none; b=di/p2mZ3bgQ5jF/hx/PnPj81Iv9dHM1E10veeCxHz/1GeJ0gp2U+lpXx5E8Zo557yHR6xpT69Eo5LHTYcPMFxcpjiFzIDU/tuAntaUMHYpvlhrDMxlxE0bQ6eY0VUvt4dNzdRFtksByWfX5IDvKoWBkLkX0UYTCz6SqR7xfvcW8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705569525; c=relaxed/simple; bh=SYVQKGmq2Pc7bNuhYofTx6beSai8kUA6uDXFoYuWbZE=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=dw+5WL5ew/kQCw3pBbRX3+yI6H7gRLV5HvxNGGnTFq+31GUmjOrX1M/CD8Cc8pr1yPMVlMIUOZgjwEB25Ba7vAxXmp2JRgx26MeAUkLR1MfoRlKXmtFUoI2CY82BMtaMT1BvUG+0Dmza6PdLEmC4+Ca6Fd+DbiX8qPFq/8pQwp4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-il1-x133.google.com with SMTP id e9e14a558f8ab-36095e0601bso4698335ab.0 for ; Thu, 18 Jan 2024 01:18:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705569522; x=1706174322; darn=gcc.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ZqpEO/UYawlQf3ncUDP8p9F8J895KmbpE67ZXTmMqjY=; b=cPGX6RUEkY1HLzm+KIs8/PCMVp9/v5T6isR51WARJSqBOQMa3NnihNZCGPB994J8X/ dUu8AzQL37BiNpaQsiRltYo60ybR9L4t6+EL8RyMQiz04l+ICPe2YaRsl9oPOal7aa2V CaPO0bkod3p+Xblk1fqW95fYW2iae2GkuEwkeTuHHhJGOuNPDdEguE8v6asMeAlUCCZJ pI5OV2QQJ/qoGTRjSzZR2upMRdxySrekEygtuYatZwv8LPxjYs2V5YZi2FkPCSL25JzO rCNWuauaP9nr8QIIOUmoh7NKC1lZCralX3CcXwtGmeU3WJBHvjKuoy4qCMXArNAtFvhY xwFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705569522; x=1706174322; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZqpEO/UYawlQf3ncUDP8p9F8J895KmbpE67ZXTmMqjY=; b=fwuIsVFLuOrgcqms8gsss+PLsxWpEtiK+2JCwZGYbnoRfAkafIzOqtRBUwQjw+e78z UBPW3fDX+7gDKH5giaiGyTzR9yxYtwk4MYJeo/6NHJnoAZsyNuXBFCkREdbJTWnM5y49 KlIhzIl/VHwc8keFpjAqBza4Xj2O7P8pRgpGPumgw+8VpyXipQHGMBmRCg79R+0B3jbB wuDeDk7Zbm30qsgGaYvvfdPmabUADAsaEnF4LCD4vr32kobrko1LTgriG3B2xUC2XEaF tqEqEaTVmZrG/0PbAzgTfZ5xaKvjMQ1YLvg4KEDi2poImK7lQJ8AzJF4zfIm6M6LmifK v4NQ== X-Gm-Message-State: AOJu0YzWaJwvkp9/m19BiEC9afuLSHYltkqqIb3s9l3SY7LgMl1ukPj1 w0cM+UjipGJ77Zi3bpXG4EaBXYPu1btSKPITkiEtG77OcDr1ofhTmgWrB66jdWB+MwAGl3jeXKU Fkz/rQYffmydKphe7QufrKPCaexU= X-Google-Smtp-Source: AGHT+IHh8tLPJ4xH91oO8ItpFhni8L30cuJfSU4hi1C8mdBroo0xo4DF5u4Y1DNkikeGD8ykZ1bwBwrPMf3/2xUM3dQ= X-Received: by 2002:a6b:6402:0:b0:7be:e080:6869 with SMTP id t2-20020a6b6402000000b007bee0806869mr1104800iog.1.1705569522322; Thu, 18 Jan 2024 01:18:42 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Rajeev Bansal Date: Thu, 18 Jan 2024 14:48:30 +0530 Message-ID: Subject: Re: Reporting unnecessary inclusion of header files. To: Jonathan Wakely Cc: gcc-help Content-Type: multipart/alternative; boundary="0000000000008492cf060f34d96e" X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --0000000000008492cf060f34d96e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks Jonathan. I have C++ code as well in my project, it looks like iwyu is compatible with llvm+clang compiler, any idea it will work with gcc as well? Thanks, -Rajeev On Thu, Jan 18, 2024 at 2:33=E2=80=AFPM Jonathan Wakely wrote: > > > On Wed, 17 Jan 2024, 23:47 Rajeev Bansal via Gcc-help, < > gcc-help@gcc.gnu.org> wrote: > >> Hi All, >> >> I am looking for someone help on header file inclusion in C/CPP code. C= an >> gcc help me to report the unnecessary inclusion of header files in my >> project? If not what are the other ways I can do it? >> > > No, gcc can't help with this. But there's a clang-based tool for it: > https://include-what-you-use.org/ > > > > --0000000000008492cf060f34d96e--