Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++: Tool to reduce compile-time dependencies automatically

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?

like image 513
Jonathan Livni Avatar asked Nov 25 '10 14:11

Jonathan Livni


1 Answers

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.

like image 191
Daniel Lidström Avatar answered Sep 22 '22 15:09

Daniel Lidström