Re: Reporting unnecessary inclusion of header files.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 18 Jan 2024, 09:18 Rajeev Bansal, <connectrajeev@xxxxxxxxx> wrote:

> 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?
>


I'm not sure what you mean. As I said, it is a clang-based tool. It works
with both C and C++.

No, it won't work with GCC. It uses clang libraries.


> Thanks,
> -Rajeev
>
> On Thu, Jan 18, 2024 at 2:33 PM Jonathan Wakely <jwakely.gcc@xxxxxxxxx>
> wrote:
>
>>
>>
>> On Wed, 17 Jan 2024, 23:47 Rajeev Bansal via Gcc-help, <
>> gcc-help@xxxxxxxxxxx> wrote:
>>
>>> Hi All,
>>>
>>>  I am looking for someone help on header file inclusion in C/CPP code.
>>> Can
>>> 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/
>>
>>
>>
>>




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux