Can you set clang-format's line length?

Gregg picture Gregg · Dec 6, 2017 · Viewed 14.9k times · Source

clang-format is breaking up my lines at 80 columns. Is there a way to make stop breaking lines? The documentation doesn't seem to address this.

Answer

Paweł Bylica picture Paweł Bylica · Dec 7, 2017

The configuration option responsible for it is called ColumnLimit. You can remove the column limit by setting it to 0.

ColumnLimit: 0