clang-format automatically changes function block comments, how to disable it?

耗尽温柔 提交于 2020-03-23 08:06:52

问题


When I select ColumnLimit any non-zero value. It converts block comments into Doxygen block comments (it adds space before * on a new line). But I do not want to change it. How can I disable it?

My .clang-format file

ColumnLimit: 100
IndentWidth: 4
TabWidth: 4
UseTab: Never

It converts the following block comments

/*****************************************************************************
*   A brief comments.
*
*   @param theory .
*
******************************************************************************/

into this

/*****************************************************************************
 *   A brief comments.
 *
 *   @param theory .
 *
 ******************************************************************************/

NOTE: It added spaces before each line, I do not want these spaces. And I don't want to solve this by disabling clang-format for every Doxygen comment block. That seems ridiculous.

Any good suggestions? :-)

来源:https://stackoverflow.com/questions/60473112/clang-format-automatically-changes-function-block-comments-how-to-disable-it

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