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/