When calling astyle manually without wildcards in the filename(s),
astyle will refuse to work if the --recursive option is used. Remove it
from .astylerc and add the option to the command line when the "reformat"
build target is used.
--convert-tabs
--exclude=subprojects
--exclude=build
---recursive
-i
-j
-f
-k3
-w
--formatted
-
if prog_reformat.found()
run_target('reformat', command: [
prog_reformat,
- '--options=@SOURCE_ROOT@/.astylerc',
+ '--options=@SOURCE_ROOT@/.astylerc', '--recursive',
'@SOURCE_ROOT@/*.c', '@SOURCE_ROOT@/*.h',
])
endif