Clang plugin for forward declaration warnings

Hi,

In projects with a large codebase it is often desirable to reduce the amount of included headers in header declaration files and rather use forward declarations. It occurs to me that a clang-plugin could conceivably be used to check a large codebase for such opportunities and assist a script in refactoring.

I am wondering if anyone has written such a clang plugin? Can anyone see a problem with this idea?

Cheers,
Adam

Hey Adam,

Hi,

In projects with a large codebase it is often desirable to reduce the amount of included headers in header declaration files and rather use forward declarations. It occurs to me that a clang-plugin could conceivably be used to check a large codebase for such opportunities and assist a script in refactoring.

I am wondering if anyone has written such a clang plugin? Can anyone see a problem with this idea?

See https://code.google.com/p/include-what-you-use/

Cheers,
Adam

Greetings,
Daniel