Skip to main content
9 events
when toggle format what by license comment
Oct 31 at 17:47 comment added timemage @jsotola Good catch. I managed to leave the clang-format version number out also, somehow.
Oct 31 at 17:46 comment added timemage @EdgarBonet I didn't even think to try an empty file. I haven't been back to try things, but I wanted to incorporate your information. Sorry if it looks a bit shoehorned into the answer, but I thought it would be better to get it in front of a reader sooner rather than later.
Oct 31 at 17:34 history edited timemage CC BY-SA 4.0
Incorporated further explanation from Edgar Bonet and missing mention of filename from jsotola. Included clang-format version number.
Oct 31 at 14:18 comment added jsotola super useful answer ... upvote ... please add the filename in the first sentence of your answer
Oct 31 at 9:02 comment added Edgar Bonet Good find! Note that clang-format has decent default settings, which include ColumnLimit: 80. Thus, an empty style file is enough to avoid the overlong line. A style file with the single line PenaltyIndentedWhitespace: 1 would already give a decent formatting.
Oct 31 at 7:44 comment added timemage If you find a better configuration change before I update, you can put it in your own answer or let me know in a comment and I may incorporate it into this one.
Oct 31 at 7:38 history edited timemage CC BY-SA 4.0
Reverted to using ColumnLimit.
Oct 31 at 6:24 history edited timemage CC BY-SA 4.0
added 16 characters in body
Oct 31 at 6:00 history answered timemage CC BY-SA 4.0