Tool to parse C++ source and move in-header inline methods to the .cpp source file? [closed]
- 阅读更多 关于 Tool to parse C++ source and move in-header inline methods to the .cpp source file? [closed]
The source code of our application is hundreds of thousands of line, thousands of files, and in places very old - the app was first written in 1995 or 1996. Over the past few years my team has greatly improved the quality of the source, but one issue remains that particularly bugs me: a lot of classes have a lot of methods fully defined in their header file. I have no problem with methods declared inline in a header in some cases - a struct's constructor, a simple method where inlining measurably makes it faster (we have some math functions like this), etc. But the liberal use of inlined