Is a configuration of clang QtC 4.7 checks per config file possible?

不想你离开。 提交于 2020-01-05 04:19:13

问题


QtC 4.7 offers the inline CLANG code checks, as shown in the screenshots. I can configure those from options/C++. But I wonder if I can have a config file which I can commit (git) so everyone in the team is using the same checks.

Is that possible (e.g. similar to Artistic style where I can use a file or the config in QtC)?

The checks I mean:

Configure in C++ options, can I do the same in a config file?

--- Edit ---

I could use the annotations like [[clang::fallthrough]] which silence the warning, but cause other issues like VS2017 "attribute not supported warnings" (we compile on 3 compilers).

来源:https://stackoverflow.com/questions/51619853/is-a-configuration-of-clang-qtc-4-7-checks-per-config-file-possible

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