From patchwork Sun Nov 6 23:47:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Williams X-Patchwork-Id: 13033692 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 89389C433FE for ; Sun, 6 Nov 2022 23:47:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230011AbiKFXrL (ORCPT ); Sun, 6 Nov 2022 18:47:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229756AbiKFXrK (ORCPT ); Sun, 6 Nov 2022 18:47:10 -0500 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43CE9D2C8 for ; Sun, 6 Nov 2022 15:47:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667778430; x=1699314430; h=subject:from:to:cc:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=2gU+FCIDMTYBNsSr0cDrPz/tHZPBfxQbmub9NqW4knM=; b=d8Q+bYON2gtFctVKxxteikEOjk90UUSSMFWQkedjFCTOYVsrS4wcpUKf WAFDONfhKQuTNCnEXqMv3VrowTYhoBVqGmF+E0vJ+DjfrFiaj/Ib5q63w /szt1sqVH0oNLCLi5U95l5DxyLt+xCU5x51T5Odj9t9Z9vXVCzUeQccL6 HX4lEWc8HtRCy1V/bXlBeWDlus02bcxS6vNhCV8gcEVF3GcORVIzuDQBt RI77g0PAMPR3yEQgbdP7Cp09UgWKy3UPZOtcErCxkFAr5ohmwsuGCJnaw KnLILvikkWnvNHRoDy6ro0I9kihMynvHsj3282mg9dg58bzryqhES8g4m A==; X-IronPort-AV: E=McAfee;i="6500,9779,10523"; a="293634013" X-IronPort-AV: E=Sophos;i="5.96,143,1665471600"; d="scan'208";a="293634013" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Nov 2022 15:47:09 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10523"; a="964951379" X-IronPort-AV: E=Sophos;i="5.96,143,1665471600"; d="scan'208";a="964951379" Received: from durgasin-mobl.amr.corp.intel.com (HELO dwillia2-xfh.jf.intel.com) ([10.212.240.219]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Nov 2022 15:47:09 -0800 Subject: [ndctl PATCH 04/15] ndctl/clang-format: Fix space after for_each macros From: Dan Williams To: vishal.l.verma@intel.com Cc: linux-cxl@vger.kernel.org, nvdimm@lists.linux.dev Date: Sun, 06 Nov 2022 15:47:08 -0800 Message-ID: <166777842874.1238089.4293045826403123016.stgit@dwillia2-xfh.jf.intel.com> In-Reply-To: <166777840496.1238089.5601286140872803173.stgit@dwillia2-xfh.jf.intel.com> References: <166777840496.1238089.5601286140872803173.stgit@dwillia2-xfh.jf.intel.com> User-Agent: StGit/0.18-3-g996c MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-cxl@vger.kernel.org Copy the approach taken in the kernel via: commit 781121a7f6d1 ("clang-format: Fix space after for_each macros") Signed-off-by: Dan Williams --- .clang-format | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.clang-format b/.clang-format index f372823c3248..448b7e7211ae 100644 --- a/.clang-format +++ b/.clang-format @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 # -# clang-format configuration file. Intended for clang-format >= 6. +# clang-format configuration file. Intended for clang-format >= 11. # Copied from Linux's .clang-format # # For more information, see: @@ -157,7 +157,7 @@ SpaceAfterTemplateKeyword: true SpaceBeforeAssignmentOperators: true SpaceBeforeCtorInitializerColon: true SpaceBeforeInheritanceColon: true -SpaceBeforeParens: ControlStatements +SpaceBeforeParens: ControlStatementsExceptForEachMacros SpaceBeforeRangeBasedForLoopColon: true SpaceInEmptyParentheses: false SpacesBeforeTrailingComments: 1