问题
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