Relative Content

Tag Archive for clang-format

How do I get clang-format to enforce line length for C++ comment

I am using clang-format to format my C++ code.
I have ColumnLimit set to 120 in my .clang-format configuration file. I have verified that this configuration file is being used. However, in my C++ code, I have a C++-style comment(// …) line on its own that is much longer than 120 columns and the clang-format doesn’t do anything with it. What am I missing?