[LLVMdev] Clang plugin for forward declaration warnings

Adam Treat adam.treat at samsung.com
Wed Nov 27 09:19:29 PST 2013


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



More information about the llvm-dev mailing list