How would one directly change the file being formatted by Uncrustify in Windows? All the docs suggest is to pipe the standard output to another file. Is there a clean batch script or a way in Uncrustify to just change the file directly?
I tried doing a script like the following:
for /R %%f in (..\..\..\src\Funs\*.c) do (
..\..\Uncrustify\uncrustify -c ..\..\Uncrustify\g.cfg -f %%f > %%f
)
The problem is that the file ends up empty, which makes sense. I just don't know a workaround