[RFC] Increase libstdc++ line length to 100(?) columns
Matthias Kretz
m.kretz@gsi.de
Tue Dec 1 09:25:53 GMT 2020
On Freitag, 27. November 2020 00:50:57 CET Jonathan Wakely via Libstdc++
wrote:
> Does anybody object to raising the line length for libstdc++ code
> (not the rest of GCC) to 100 columns?
Having reformatted *a lot* of code to libstdc++ style recently, the 80-column
limit had me scratching my head and investing time better spent elsewhere
(IMHO) way too much.
I'd object to staying at 80, FWIW. ;-) Going to 100 cols is an improvement.
And I agree with others in this thread, it shouldn't be a hard limit. If the
semicolon lands on column 101 does an additional linebreak really help
readability?
There's another topic that came up in this thread: how to best indent after a
line break. After indenting way too much code manually, I wrote https://
github.com/mattkretz/vim-gnuindent. You can see how it indents in its
test.cpp. Maybe this is useful for some of you. :-)
Cheers,
Matthias
--
──────────────────────────────────────────────────────────────────────────
Dr. Matthias Kretz https://mattkretz.github.io
GSI Helmholtz Centre for Heavy Ion Research https://gsi.de
std::experimental::simd https://github.com/VcDevel/std-simd
──────────────────────────────────────────────────────────────────────────
More information about the Libstdc++
mailing list