Code style enforcement
Jonathan Wakely
jwakely.gcc@gmail.com
Fri Dec 24 12:21:56 GMT 2021
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.
More information about the Libstdc++
mailing list