From: Jonathan Wakely <jwakely.gcc@gmail.com>
To: Tejasvi Singh <tejasvisingh48@outlook.com>
Cc: "libstdc++" <libstdc++@gcc.gnu.org>
Subject: Re: Code style enforcement
Date: Fri, 24 Dec 2021 12:21:56 +0000 [thread overview]
Message-ID: <CAH6eHdShKi=Cos=00FOo28da9C79b9t0dm5Vw9B7xc9=qp4x8g@mail.gmail.com> (raw)
In-Reply-To: <CAH6eHdQ62UjypzR3L3teb2NAkjvOCC_jH6OE32nKjDn_uekbFQ@mail.gmail.com>
On Fri, 24 Dec 2021, 12:18 Jonathan Wakely, <jwakely.gcc@gmail.com> wrote:
>
>
> On Fri, 24 Dec 2021, 10:45 Tejasvi Singh via Libstdc++, <
> libstdc++@gcc.gnu.org> wrote:
>
>> Hi,
>>
>> While going through include/bits/stl-algo.h I noticed the return type is
>> indented after template declaration. See below the indentation of return
>> type _Function. The code formatting is enforced by clang-formatter (config
>> at /contrib/clang-format)
>
>
>
> No it isn't.
>
> That file is for the compiler code, and is not used for libstdc++ code. I
> don't think the tool supports the libstdc++ formatting style. Last I heard,
> it has no way to do that indentation.
>
I use https://github.com/mattkretz/vim-gnuindent to indent libstdc++ code.
prev parent reply other threads:[~2021-12-24 12:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-24 10:44 Tejasvi Singh
2021-12-24 12:18 ` Jonathan Wakely
2021-12-24 12:21 ` Jonathan Wakely
2021-12-24 12:21 ` Jonathan Wakely [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAH6eHdShKi=Cos=00FOo28da9C79b9t0dm5Vw9B7xc9=qp4x8g@mail.gmail.com' \
--to=jwakely.gcc@gmail.com \
--cc=libstdc++@gcc.gnu.org \
--cc=tejasvisingh48@outlook.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).