cpp-merge
cpp-merge copied to clipboard
Command line tool to produce single source file from multiple C/C++ files.
On Bigger Projects the stack quickly fills up. Error message: RangeError: Maximum call stack size exceeded at readFile (C:\Users\Phil2207\AppData\Roaming\npm\node_modules\cpp-merge\lib\parse\utils.js:31:15) at CppFileMerger.parseFile (C:\Users\Phil2207\AppData\Roaming\npm\node_modules\cpp-merge\lib\parse\CppFileMerger.js:46:50) at CppFileMerger.parseIncludedFile (C:\Users\Phil2207\AppData\Roaming\npm\node_modules\cpp-merge\lib\parse\CppFileMerger.js:70:21) at C:\Users\Phil2207\AppData\Roaming\npm\node_modules\cpp-merge\lib\parse\CppFileMerger.js:54:25 at Array.map ()...
This PR fixes #9
I have the following pragmas at the top of my main.cpp file and when I merge all my files into one output file, they are placed right above my main,...
Clarify that cpp-merge will only look for source files if the corresponding header file contains a `#pragma once`. Not knowing about this behavior prevented my source files from being added...
If top.cpp includes "a.hpp", and "a.hpp" include another "b.hpp" from another folder, it seems that b.hpp will not be found even if we set that path to it in "--include...