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
Daniel Albuschat
2013-Nov-27 17:47 UTC
[LLVMdev] Clang plugin for forward declaration warnings
Hey Adam, Am Mittwoch, 27. November 2013 schrieb Adam Treat :> 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/ <https://code.google.com/p/include-what-you-use/>> Cheers, > AdamGreetings, Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131127/c50503f9/attachment.html>
Reasonably Related Threads
- Before we go cleaning up LLVM+Clang of all Static Analyzer Warnings...
- Before we go cleaning up LLVM+Clang of all Static Analyzer Warnings...
- [LLVMdev] Running c++-analyzer on svn r159506 llvm-clang
- [klibc:master] dash: output: Fix clang warnings about GNU old-style field designator
- [cfe-dev] Who wants faster LLVM/Clang builds?