spin2cpp
spin2cpp copied to clipboard
Enhancement request: spin2cpp flag '-f' list #included files as well?
@totalspectrum
I noticed this handy flag today:
[ -f ] output list of file names
Would it be practical to add support for adding files to that list that are included by the preprocessor (or is there a way to switch that on, currently?). This flag is handy for writing a script to package up everything into an archive, but it misses #included files. Low-priority request as it isn't something I use very often.
Thanks!
While you're at it, could you add something along the lines of GCC's -M flag for auto-generating Makefile dependencies?
This will be fairly complicated (the preprocessor is separate from the main compiler, and there are two different preprocessors used by different languages). So it's going to have to wait.
+1 for GCC-style -MMD flag, it's hard to write a good makefile (or rakefile...) without this feature
-f does print included files now (except for standard system files included in C with a
And I've added -MMD to flexcc.