Reporting unnecessary inclusion of header files.

Rajeev Bansal connectrajeev@gmail.com
Thu Jan 18 09:18:30 GMT 2024


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 PM Jonathan Wakely <jwakely.gcc@gmail.com>
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. 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/
>
>
>
>


More information about the Gcc-help mailing list