I would like to format only a part of a sourcefile, like a function instead of the whole file.
This is needed because i can't format the old source completle. Only the newly added functions or changes in functions should be auto formated through uncrustify.
Is a selection based formating possible with uncrustify?
Maybe it is possible to do a automatic formatting of each function which is changed through a combination of git diff --function-context
and a uncrustify call.
git diff --function-context | uncrustify -xyc