C++: Tool to reduce compile

After reading about the pimpl idiom I was horrified!

Isn't there a tool out there that can inspect a .h/.cpp file and deduce what dependencies could be waivered?


Sorry, but no there isn't. C++ still relies on preprocessing source files, very mechanical. Large-scale C++ development is all about reducing the dependencies. In my opinion, C++ is simply not suitable for those kinds of tasks.


Does precompiling the headers not solve many of these horrors. Both MS and g++ support these now.


Static code inspection for C++ is a nightmare, because of its syntax and macro preprocessor, I doubt there are tools like the one you describe.

If it existed, what would you expect from it? Would you like it to refactor/rewrite code for you? Adding and/or removing what?

Sounds like a daunting task to me.

链接地址: http://www.djcxy.com/p/48990.html

上一篇: 如何将C#字节数组转换为结构化数据?

下一篇: C ++:减少编译的工具