Question

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?

Was it helpful?

Solution

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.

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top