gpt4 book ai didi

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

转载 作者:太空狗 更新时间:2023-10-29 20:39:35 25 4
gpt4 key购买 nike

astyle 是否有一个选项可以做类似的事情:

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

所以,基本上把不符合astyle的文件列出来,但实际上不去改。我浏览了手册页,找不到任何有用的东西。 astyle 创建 .orig 文件,我可以使用该信息,但我不想弄乱驱动器,即使 astyle 可以在事后进行清除。我真的很想要这样的选择。

最佳答案

astyle 有一个 --dry-run option你可以用来做这个

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

关于c++ - 我可以列出将使用 astyle 格式化的文件吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27445320/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com