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? :-)
Add the following line in your .clang-format
file
CommentPragmas: '^[^ ]'
This will force the clang-format not to alter any comments in the code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With