caide-cpp-inliner
caide-cpp-inliner copied to clipboard
Transform a C++ program consisting of multiple source files and headers into a single self-contained source file without any external dependencies (except for standard system headers). Unused code is...
Example: [http://ideone.com/QaLeKP](http://ideone.com/QaLeKP) If I rewrite the function in the following way, everything works: `template void f(Y& y) { typename Y::value_type value = 42; y.value = value; }`
Most of the code gets removed, so the result doesn't compile [http://ideone.com/7yQH6L](http://ideone.com/7yQH6L)
Comments in global namespace aren't removed, and I didn't find an option to change this behavior. Comments inside classes that are at least partially inlined are also affected.