From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from IND01-BO1-obe.outbound.protection.outlook.com (mail-bo1ind01olkn0146.outbound.protection.outlook.com [104.47.101.146]) by sourceware.org (Postfix) with ESMTPS id 3E5563858D28 for ; Fri, 24 Dec 2021 10:44:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3E5563858D28 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=giiSVDO6R64CuwduQfdtq6R1he7r5wigsrS3xUQBKNgIWekwMN+zscYwMRcEmxC78GixdvarNesv2KfNSFrmO3ij5p4bPUHp5aiW9tB3jhq6XT2QvMmAlEKkivEaXyW+FdvSdjKZ7vOpLhmzuUoV8UEXSo0ZbirT+VADYH0xenVz/hOasHkhmTMudlojYgDC7cpghpB55TcZTdCUpn3WidoD150x4JupMmhGXUQ/lLF0+dl+NgbKIrbRtQnCGAbkuwtz6acIieXf4IYg08zWa4fhnTkhr4DQ5dwzuMbnux3KAjDycOcxcS3xFodgkuZ3hQv2ha+Ns6QwE04j/LxyVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=GXLZQhZK67yfHuAkQQW5rR52DibHnJN+UwFw1s/7WmA=; b=OOkNVaHOy3hqCuX9Pfx0zK0NtsAXuJJmfloNDrcrhqpUtRu4QonmktKGwcydGgYOrK9xulfL7kJSENKhRQqqvOnDI5xYU7/kl/8q6JWKdxYuQGBJMK7AcvuvpUSSe4bgBCqWSHBdRMbvy4M0b3jpeMx7LL04LKHvSvW7J1vXi/RohL0tqoN8IGPFyEt764gVH6EPWjsZszkyc8BqKQqg2cb7MBW2mU+PYH+8IWemHnsSiJoJE3UGtt8Ts3aZZS1HsGbJPKFm90wGWOrwgB12pX34nc6MPmKzhm+H9FU0wArwSQmRvK8/da6xnh8Fc9KSWEuKKuVORch6/n4KPhsGbQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from BM1PR01MB2579.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:4c::19) by BMXPR01MB2312.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:32::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4823.19; Fri, 24 Dec 2021 10:44:29 +0000 Received: from BM1PR01MB2579.INDPRD01.PROD.OUTLOOK.COM ([fe80::2cea:496d:7437:f844]) by BM1PR01MB2579.INDPRD01.PROD.OUTLOOK.COM ([fe80::2cea:496d:7437:f844%4]) with mapi id 15.20.4823.018; Fri, 24 Dec 2021 10:44:29 +0000 From: Tejasvi Singh To: "libstdc++@gcc.gnu.org" Subject: Code style enforcement Thread-Topic: Code style enforcement Thread-Index: AQHX+LHAZ/DdQzaG+UqrZ5dwAHL5Gw== Date: Fri, 24 Dec 2021 10:44:29 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-tmn: [cxAEnZotODQcj7h9pcpnB5G7Y4ZxgLlI] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 14923463-f2b8-4963-4d68-08d9c6ca5cda x-ms-traffictypediagnostic: BMXPR01MB2312:EE_ x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: EhI3+R/i0DS4F+HU1wjUNsfUU9lvRfBGYluYI8dEgCNO7GdZ8G07LkJNvJRDILPj5sxBM+v2J1JaVUfnyn68s8xEUGfmRptqRolsKt3LyHk8WRtKwcInt0I+5ODQKlLLUWMAhK4EV66I+3+IhfgkyAq6cdG0aZXymttcYJlzixekflWRvU8zl1jWuTAKv1xgn+VqRVr5O9XlRRW5rtWARTtVxF2NPB/GowOfyOny76kqblmDLnKO3+GQIUmw8M0dizGgfx22KmKap9FseZUWzEwc3sOLph72rcvXy2iZP0lqV+rp4uv8gsZ77adhduMyAINwMxrpToBNj2CPiFQBkX+I5sbEavSEGkuk44Xb9VJO3whDMr3/oj2tQdIh8vmR7nCjbbU3VBU/A2GYhVW/e5SdyKvNAnj73pe2WHn/5vX6FcjNl6WM6h5d3GAC0BISPxYG6yJhd6R9Rcs6uaut/mPqzpqWu1k8sY9W8X5RB/1lCh2cqg+NtoXwBXeEpzY5bDVn4Ijy/XkyO8kmXSfUMdmIaKwe+oLBf0T8LmFDOHS4dn+CwDlIsj+T57PlspSffRFDP1JgWffS1CxJV8I/RQ== x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?OJ26XV80gkyZX4+F/gFoDoR7xEQqbWyh5BXuCh3lsx93ffd2gAd0wWyRY5VK?= =?us-ascii?Q?q+0z9Mxt8Q5M288SQz0o851MfDYPJMX5Fbi+aWZ5aGkmmUpxaoryio8wzz48?= =?us-ascii?Q?4JQP1+TpvhOqp7sBw2oJMiVH5Kg7j6z9EXmLJu/dyTZCXhuz09E4Pi7UkTTE?= =?us-ascii?Q?yzQRMU95tnktPekbCOJDCv2fAZd29JRscCrisMlzn7tr/D1kzOQX4cXOoJWl?= =?us-ascii?Q?SlnPUDdF7lGgQo5KMK4C4y9dhDAlkocZ4RHbGw2kU+EgOISiktp+pba9EnXz?= =?us-ascii?Q?yOu9NKHa9q+R/wFVZ7iuP/vIgCvDCG1S0rJgMFYVbaRYEsui+fKb27vxLdEf?= =?us-ascii?Q?J+tpKQbUgV0PUzQUtyB2uC/ARqgtctOC+TiZHYMti87P3P3M9g0E0Ws1pqnK?= =?us-ascii?Q?6AlmjCdFW3t6N21pyzrBLCcOnru/LJUmHlqNL0zF5lywV89aIsO5rjzm0JoC?= =?us-ascii?Q?J++p+/oBesgccR7Z/wxIGbhmnhzPnd5CtM8sghX2KlwWOTMHnhe8JrUjc75x?= =?us-ascii?Q?x9mtWBiCF5diiobQEq63NBOGlm4nELmXBBhQBgu5nDba/gjA9KkfJkqM5uGo?= =?us-ascii?Q?FPuQNRx4CdwiAMW7rTaNDuLl6KyrsvYvHUQ8iELR6Ib0Pntg/I3pkD+mcrrf?= =?us-ascii?Q?UrIB9qiuot6KsedVVIZLEIxnulW7m6tZUbnz8OP+8fGqAm7KAB9wdLgta/qs?= =?us-ascii?Q?ujF/1oATie3Rm23yI1LhXgJiT5DoeBuE5B3AmGD25AyoXTn9xuRbP8KoVKQL?= =?us-ascii?Q?xRSEg4C6tTdW57BoXfUEEHWkvqnvwlycJc4nFMo42nW4RkNmVt0sO0ijOk2U?= =?us-ascii?Q?RZHSvCORr5wHZoeg9zVco80JKQ5ExjOdz2R+YjD5MMhfXnqWeUsxAplkGsDw?= =?us-ascii?Q?vM/8yUoko1F5CPQUolMXtW4jP3pH4tTyAp0XhbOZDo6WOsKo5fP2cqbhKJt8?= =?us-ascii?Q?v5+dH7Y/C2pi3R+X+egSjA=3D=3D?= MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BM1PR01MB2579.INDPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 14923463-f2b8-4963-4d68-08d9c6ca5cda X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Dec 2021 10:44:29.2358 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BMXPR01MB2312 X-Spam-Status: No, score=1.5 required=5.0 tests=BAYES_50, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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 10:44:42 -0000 Hi, While going through include/bits/stl-algo.h I noticed the return type is in= dented after template declaration. See below the indentation of return type= _Function. The code formatting is enforced by clang-formatter (config at /= contrib/clang-format) which does not indent the return type after template = declaration. Is the inconsistency due to limitation of clang-format or a mi= ssing config option? template _Function for_each(_InputIterator __first, _InputIterator __last, _Function __f) { // concept requirements __glibcxx_function_requires(_InputIteratorConcept<_InputIterator>) __glibcxx_requires_valid_range(__first, __last); for (; __first !=3D __last; ++__first) __f(*__first); return __f; // N.B. [alg.foreach] says std::move(f) but it's redundant. } Tejasvi