Examples (6)
Format a single file
uncrustify -f path/to/file.cpp -o path/to/output.cppRead filenames from `stdin`, and take backups before writing output back to the original filepaths
find . -name "*.cpp" | uncrustify -F - --replaceDon't make backups (useful if files are under version control)
find . -name "*.cpp" | uncrustify -F - --no-backupUse a custom configuration file and write the result to `stdout`
uncrustify -c path/to/uncrustify.cfg -f path/to/file.cppExplicitly set a configuration variable's value
uncrustify --set option=valueGenerate a new configuration file
uncrustify --update-config -o path/to/new.cfgmade by @shridhargupta | data from tldr-pages