From this thread, I know ColumnLimit
can set code line length. But it also influences comment line length, and I don't wish it to be controlled by ColumnLimit
.
How to specify comment line length when ColumnLimit
has been set?
If I understand your comment correctly, you're saying that breaking comments into lines will hinder some functionality in some other code analysis program. In that case, you may turn clang format off and back on for part of your code:
// clang-format off
void codeThatWontBeFormatted() // my very long comment that won't be formatted
{
}
// clang-format on
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