From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by sourceware.org (Postfix) with ESMTPS id 9A1003858C27 for ; Fri, 24 Dec 2021 12:22:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9A1003858C27 Received: by mail-wr1-x431.google.com with SMTP id a9so17196978wrr.8 for ; Fri, 24 Dec 2021 04:22:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=z0/HZ1lbpNQE5ll+QipnFnkz4luPySEjvxuW6+j9AKM=; b=VUPu2bccuoJWWpdK0OZmeEoYY2xnbc+jTErW8bpeytc1aVcYrYwxGk5H5u2EnLDXwO 8ltrte2Qnvy5Wcpan3PKt5KShsWnF7yP+b8pa3Z7gq2BxFcDNsB9YuFsZB5Yrhwpt7gS YayvK7JYLKs0tNGZGQ/bZgpfZRLW8Y6fKihe9h9nVEGlQ7YoMffj75IaRvqDr0ilyfx3 PNv2n5dNnKo4hPwtm/GM0htMUHhij1w9r969GR2izNVYqezkBq4OcGKE6FXqdbCc5DVN +FObn0ZczksoyQ4jeXHJIkd3gDE7n+VOi15TLjB5hav1GO0zBktO5/tRwyxm8em2UEIC Pq4A== X-Gm-Message-State: AOAM532fS4YN0qWCvcI1OMLIpko75/mr1pbtqw8CB6Jv5qmcurUy4z1C QdwsfA6z5nE6tzB2OgvEAaxhTE8FUZDekAS6IK4= X-Google-Smtp-Source: ABdhPJwFEDd0Q0hm2Lo9/buM+w9HGdipgB5LfPRS7g45IiTkWY2Iz5cdHq4p/YYec/2iNcbb46xAvvHwOzUjWVWKeW8= X-Received: by 2002:adf:ec85:: with SMTP id z5mr4567942wrn.568.1640348528826; Fri, 24 Dec 2021 04:22:08 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Wakely Date: Fri, 24 Dec 2021 12:21:56 +0000 Message-ID: Subject: Re: Code style enforcement To: Tejasvi Singh Cc: "libstdc++" X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: libstdc++@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++ mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Dec 2021 12:22:10 -0000 On Fri, 24 Dec 2021, 12:18 Jonathan Wakely, 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.