Unify output with different clang-format versions

蹲街弑〆低调 提交于 2020-01-16 00:43:23

问题


We've tried to beautify our code a bit with clang-format tool.

In order to get unified result on all machines we've done clang-format --style=llvm --dump-config, which has been tuned a bit and stored into repo.

The issue is that clang 10 and 9 seem to provide us with different output for exactly the same code. I've seen changes in comments alignment only so far, but it still breaks the whole idea of getting code style consistent. Another issue is that clang 9 is unable to parse some settings dumped from v10.

Is there any way to insure consistent formatting across multiple versions of clang-format?

来源:https://stackoverflow.com/questions/58450914/unify-output-with-different-clang-format-versions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!