开发者

C++ Refactoring Precompiled Header

开发者 https://www.devze.com 2023-01-02 20:24 出处:网络
Unfortunately on a project here at work, someone had the great idea to put every header every single file from pretty big project into the precompiled header. This means any change to any header in th

Unfortunately on a project here at work, someone had the great idea to put every header every single file from pretty big project into the precompiled header. This means any change to any header in the 开发者_高级运维project has to recompile the entire project, and all cpp files taking way too long.

Is there any decent C++ refactoring tool which could automatically put the needed includes in the appropriate cpp files? I really don't want to do this manually with hundreds of different files.


There are very few decent C++ refactoring tools because parsing C++ code is hard (and therefore also slow). You'll probably have to write such a tool yourself, possibly with some assistance from GCC-XML.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号