[PATCH v2] Add .clang-format style file
Joseph Myers
joseph@codesourcery.com
Wed Mar 30 20:21:24 GMT 2022
On Wed, 30 Mar 2022, Noah Goldstein via Libc-alpha wrote:
> > > and cleans up some obvious style mistakes
> > >
> > > - done:
> > > +done:
> >
> > I don't think that's a style mistake either. Emacs indents a label in the
> > outermost block of a function like that (one-column indent rather than
> > zero columns), and I think it's deliberate to support tools such as "diff
> > -p", where it's desirable that, at any point within a function, the
> > previous line starting with a letter is the line with the function name,
> > not a line with a label somewhere within the function.
>
> What's the switch for that in emacs?
This is what emacs does by default; I don't know what settings there are
to configure it.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list