我可以列出使用astyle格式化的文件吗?

Bit*_*iot 3 c c++ coding-style astyle

astyle是否具有会执行以下操作的选项:

"For the given list of files, list the files that *would be* modified by astyle."
Run Code Online (Sandbox Code Playgroud)

因此,基本上列出不符合astyle的文件,但实际上不要更改它们。我浏览了手册页,找不到任何有用的信息。astyle创建.orig文件,我可以使用该信息,但是我宁愿不要使驱动器混乱,即使astyle可以在事后进行清除。我真的很想这样的选择。

πάν*_*ῥεῖ 5

astyle有一个--dry-run选项,您可以用来执行此操作

--dry-run
在不更改文件的情况下执行试运行。该报告将照常输出。