getting the list of input files of a gcc command line

Vincent Lefevre vincent+gcc@vinc17.org
Thu Dec 6 02:15:00 GMT 2018


On 2018-12-05 17:38:31 -0500, Rena wrote:
> Perhaps you can do it the other way around: make a script/macro that
> saves all open files, then runs gcc.

I don't think that's possible to save them like that (and I certainly
don't want to force a save). What could be possible would be to have
a daemon that tracks the unsaved files (thanks to inotify), and the
wrapper could warn unconditionally if there is any open file (a bit
complex, but that would eliminate any false negative).

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



More information about the Gcc-help mailing list