Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Obj-C 中使用 Uncrustify 进行一些代码样式,但我想通知开发人员他做错了什么并让他修改代码
有没有办法使用它来获得代码风格的差异?
谢谢
我没有看到 Uncrustify 内置任何内容,但您可以结合 diff 工具来执行此操作:将 Uncrustify 的输出重定向到一个文件并使用 diff 创建一个补丁文件。
uncrustify -f file1 -o file2 diff -u file1 file2 >> mypatch.patch