From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 29E0843F47; Mon, 29 Apr 2024 15:33:01 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A3BB54025C; Mon, 29 Apr 2024 15:33:00 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2074.outbound.protection.outlook.com [40.107.220.74]) by mails.dpdk.org (Postfix) with ESMTP id ED2DD400D6 for ; Mon, 29 Apr 2024 15:32:55 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jw6lKo0ne4t/ilwKqP4BXMCjoWKAIJ5XeLtfADyymkuxhJaPFHkWLKaNKSmM7zThiR7BhsHV/3rIIXouY376CNG3AdQtXZ93V+/oXtnqoVhLqW4XKwXa6Rk4hAcOSKm3A2jXaO5ZfDqPJfst8GsEkVR3l2J97ZTUdjYjIiYaTp3+3miI2Gu/IV/Vb9F+e8ZuLgXiXsDc9Vor9grxtXm5R48IIDrvUxaYsp9jb0ve3dh6VDDi8nrveosUwnyOs1QOVF/bIV10pXpe1CuGT5DHMS0g1dFAdu4FCvJR1fo0HwjmV7R01thvLObLfTDWaMZ4az8hvRGEaYAAtW3tUuibkA== 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=aom0ou8iC34X+WaD2vvpDf+gbXjm8mEbX2eBILegya4=; b=MzbCkOaLgwl2SQl0xiEcKp8+SvuxMJ5GhvMhUzfcPcWMxXosYnF9kUeSplLJGL4ur8C8wwLqYhNCWnCSmwkDNZyx++2sMwIG7KJcKzLTWfBP0NDmMX/vKdv7QjnZ19EcPgEhkLSwtrERz4svkS0UDXWYqqpdHrFbS4lTJleLEFMcYs+V3BUbQDB7D7t4yBjiW63IavhzpqHWkg0hpt7Yzi/RR1Op4Aq2/cuywDVYxIF51Y5uoGq48QJuiv5FwHDV1l3YLy531VivfmHvvK5U9idziXXNKxARrGbABVMdN8OZTNZkWT42PfQnV9VBDuG82EymP+tFxEMYUM/2+8o/nA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aom0ou8iC34X+WaD2vvpDf+gbXjm8mEbX2eBILegya4=; b=SKcPeyFYWBh7cGYAF9HU9NF7zgFy9KQdkWtqcaTZ8nADEQ2cZpB8WHQ7vf8UfSHeJcX6rwokR1zDL0VKXsufPYBAzJVcad4zZfoTh/QuF1cF1T3uZNNmCecsw0KlaR0PvgVJqyvg0Ac9beV18zRD4bYkigxvxpmwU7k9utIZPdI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by SJ2PR12MB8689.namprd12.prod.outlook.com (2603:10b6:a03:53d::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.34; Mon, 29 Apr 2024 13:32:49 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::282f:29d3:cac1:cde3]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::282f:29d3:cac1:cde3%7]) with mapi id 15.20.7519.031; Mon, 29 Apr 2024 13:32:47 +0000 Message-ID: <64089d51-ed3c-4383-9014-920d772c9a98@amd.com> Date: Mon, 29 Apr 2024 14:32:43 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] devtools: add .clang-format file To: =?UTF-8?B?QWJkdWxsYWggw5ZtZXIgWWFtYcOn?= , dev@dpdk.org Cc: thomas@monjalon.net References: <20240429130414.1049310-1-aomeryamac@gmail.com> Content-Language: en-US From: Ferruh Yigit Autocrypt: addr=ferruh.yigit@amd.com; keydata= xsFNBGJDD3EBEAC/M7Tk/DfQSmP1K96vyzdhfSBzlCaGtcxNXorq4fALruqVsD3oi0yfyEz9 4YN8x7py0o9EL8ZdpOX0skc0AMCDAaw033uWhCn0GLMeGRKUbfOAPvL6ecSDvGD7CJIO9j0J eZUvasBgPdM/435PEr9DmC6Ggzdzt8IuG4PoLi5jpFSfcqxZFCCxLUDEo/w0nuguk2FTuYJg B2zEZ4JTBZrw7hIHiFh8D8hr6YA6a5uTofq1tr+l048lbtdFUl8TR0aIExVzE4Z8qKZlcE+9 RQaewjK5Al1jLE4sHdmd3GN+IvgDF3D/fLsi25SKJDeGSdeHkOmaX0qGeM4WKIfU6iARRCiQ N3AmBIxZ/A7UXBKLaOyZ+/i3sE6Wb53nrO4i8+0K2Qwyh6LjTeiJAIjYKN43ppxz3DaI+QwQ vI+uyHr4Gg0Da9EPPz/YyKauSeOZCfCB5gIfICO0j6x0SCl8uQ2nLpjxcZkf0gjcwUzP3h+S 3x6NfDji9YEij0zczW/dcSpGgZ6vsFpPrtnP9ZXy6J53yp0kJtOJoOlkEFFdU2yCZnCDseum CoudmGLZVvS0/DzHDJejq+3kK3FDGktZBOxZIIpal+nFqS7lVgOZc4+huVv3jyhzoAUOEyXA XK5j6o7g8STUY+z33QNnHpdLvecMwuzmvqy0jR54yAbZ64mB9QARAQABzSNGZXJydWggWWln aXQgPGZlcnJ1aC55aWdpdEBhbWQuY29tPsLBlwQTAQgAQQIbAwULCQgHAgYVCgkICwIEFgID AQIeAQIXgAIZARYhBEm7aYjps5XGsPHCElRTPtCKKm/6BQJkdyEEBQkE3meNAA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s7BZNVM1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: <20240429130414.1049310-1-aomeryamac@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO2P265CA0297.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a5::21) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|SJ2PR12MB8689:EE_ X-MS-Office365-Filtering-Correlation-Id: 8caa1005-5cef-45db-2145-08dc6850dbce X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|1800799015|366007; X-Microsoft-Antispam-Message-Info: =?utf-8?B?YlRUV2ZRb2tRYktuM2VWc2lwSGprQWF2R1dqU2lML2pHUjRSTWlIMTBTVW12?= =?utf-8?B?a1g5V1JXWWorblBhbUpCRkZ4elZRdk50bERkcTZoWXFaM2Z5UEo1NUhHcEUr?= =?utf-8?B?UmFwRkhSbGJzK1hiTUM5RmxWWG9HcTViSnZubUZnaExkbzA3TmRDSjZVL0FO?= =?utf-8?B?SXkwa1ArVmMrL3g5K2VYYVBXR05kbVlpZmZVdnlHSTJNV3crc2lCNFI5R1Zt?= =?utf-8?B?VE9odDRWQzlWRkh5SEpOUXlTaVRUY0d1em1qNVFRMmFJRyt4cEUzdXNpeWI0?= =?utf-8?B?Wmg2Z09NRE1UdFlwMzJxMW5uVTZqVFZBcnVDN0JtNWx2REc3QWhVbHh5QmEx?= =?utf-8?B?WE9aNW01akNPWTJwbm5MQStiYlVFWk9ObEppVVNtelpQcHpSdjNCYWtqL1FM?= =?utf-8?B?dGQwdlh5eStURWN5c2VxbEhFbGlzdTdiVkVFK3hJOG92NnpHNnpRYitCdzhX?= =?utf-8?B?ZGdIcUdxcDIyT1hFODF3SlNYNHR1aVRtdFYxRzRJV1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pseSt6bWVwSHdqTzNoQ0JlSlBjbmdIL1BjQW9YT1gvTXlu?= =?utf-8?B?R1dVMmErcWZyVmg2Vk9wQlMwM3haNk81M0h4STJDa2pGMXd3dlpzZm5TK25E?= =?utf-8?B?b2F5QWxWeGw1NTZ2czdaV1AyV2NMSzNXNGNjRXNkYmp3dXl6R3g4c0oraEwx?= =?utf-8?B?VkRoVHp3YUlNZlJqeGcrclBjMVNndWJQSld5WGJFSE5aYjdEMVQ2d29ZcXFm?= =?utf-8?B?RnY2dFBwYmZMUGNXUzAvcC9WUWtxaUxodjQxNHFqSjJzT1luMXpBSFg0TWFi?= =?utf-8?B?MlhoeGZuUTI0NloybnNRMTFkN3JmUWJMeW56THgzdW9LMUdQKzRWVUdRPT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376005)(1800799015)(366007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?QVNaMkJoNzgwbENFQXl1VGhhR1NFQlNnTys0VjAxUkpFK0dmbGtXSCtIQTZR?= =?utf-8?B?Sk8xREdEK0dNalJvMXEyT2NBaEpmcjdIUlc5N0FEa2dPeFNORjBCWExqYUd3?= =?utf-8?B?YUtLMlFkZ0xYUVZFZGIzTnQ1K1daK0FHZS9SR2VCNy9tUXhEdlgwN3lLbDUx?= =?utf-8?B?bmEzYnR1SG9VWmNjZ2lJNjJLUmJTSVJLTjlqZk1NSHYwUFhWb2dwMVVzV0h3?= =?utf-8?B?Q3QrU09DcGNxcmRYV3UzeVljb3c3WmJ3QUt4ZWtOeEdHdFJOYnZkbGNTWVhm?= =?utf-8?B?M1h4NzZjV3RyaU5DbjNZN2M4Z25lUnBpT3EvcTdHUS94UnRMUFQ3bnhBaENO?= =?utf-8?B?Q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S-Exchange-CrossTenant-Network-Message-Id: 8caa1005-5cef-45db-2145-08dc6850dbce X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Apr 2024 13:32:47.6783 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: CvjsHDRpcDWEIG1GK62dLgBcO8PIMoPs1llG+i9QXtj8W1DI8NM8AQWktqDfGL2k X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB8689 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 4/29/2024 2:04 PM, Abdullah Ömer Yamaç wrote: > clang-format is a tool to format C/C++/Objective-C code. It can be used > to reformat code to match a given coding style, or to ensure that code > adheres to a specific coding style. It helps to maintain a consistent > coding style across the DPDK codebase. > > .clang-format file overrides the default style options provided by > clang-format and large set of IDEs and text editors support it. > > Signed-off-by: Abdullah Ömer Yamaç > Overall +1 to have a format file, specially to help non-frequent contributors. 1. Some options are failing for me [1], I don't know if it requires a specific version of clang-format 2. Current options are not fully aligned with coding convention, it is easier to see what is not compatible by running the tool on an existing file [2]. we need to fix them. [1] `clang-format -i ./lib/ethdev/rte_ethdev.c` a. /home/amd/development/dpdk-next-net/./.clang-format:28:1: error: unknown key 'Whitespace' Whitespace: ^~~~~~~~~~ Error reading /home/amd/development/dpdk-next-net/./.clang-format: Invalid argument b. /home/amd/development/dpdk-next-net/./.clang-format:12:1: error: unknown key 'EndOfLine' EndOfLine: lf ^~~~~~~~~ Error reading /home/amd/development/dpdk-next-net/./.clang-format: Invalid argument c. /home/amd/development/dpdk-next-net/./.clang-format:15:1: error: unknown key 'File' File: ^~~~ Error reading /home/amd/development/dpdk-next-net/./.clang-format: Invalid argument [2] `clang-format -i ./lib/ethdev/rte_ethdev.c` (with failing part commented out) `git diff` A few diff samples to fix at first glance: ``` static const struct rte_eth_xstats_name_off eth_dev_txq_stats_strings[] = { - {"packets", offsetof(struct rte_eth_stats, q_opackets)}, - {"bytes", offsetof(struct rte_eth_stats, q_obytes)}, + {"packets", offsetof(struct rte_eth_stats, q_opackets)}, + {"bytes", offsetof(struct rte_eth_stats, q_obytes)}, }; ``` ``` -enum { - STAT_QMAP_TX = 0, - STAT_QMAP_RX -}; +enum { STAT_QMAP_TX = 0, STAT_QMAP_RX }; ``` ``` -int -rte_eth_iterator_init(struct rte_dev_iterator *iter, const char *devargs_str) +int rte_eth_iterator_init(struct rte_dev_iterator *iter, const char *devargs_str) ``` ``` RTE_ETH_FOREACH_DEV(p) - count++; + count++; ``` ``` rte_spinlock_lock(rte_mcfg_ethdev_get_lock()); - RTE_ETH_FOREACH_VALID_DEV(pid) { + RTE_ETH_FOREACH_VALID_DEV(pid) + { ```