3

Does astyle have an option that would do something like:

"For the given list of files, list the files that *would be* modified by astyle."

So, basically list the files that don't conform with astyle, but don't actually change them. I looked through the man pages and couldn't find anything helpful. astyle creates .orig files, and I can use that info, but I'd rather not clutter the drive, even if astyle can do a purge after the fact. I'd really would just like such an option.

Bitdiot
  • 1,506
  • 2
  • 16
  • 30

1 Answers1

5

astyle has a --dry-run option you can use to do this

--dry-run
Perform a trial run with no changes made to the files. The report will be output as usual.

πάντα ῥεῖ
  • 1
  • 13
  • 116
  • 190
  • 1
    Nice! It's not mentioned in any `man` page I found, but recommending to check the source code was going to be my next suggestion. – Jongware Dec 12 '14 at 14:20