From patchwork Tue Dec 6 22:46:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Verma, Vishal L" X-Patchwork-Id: 13066324 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 8DA19C4708E for ; Tue, 6 Dec 2022 22:47:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229506AbiLFWrP (ORCPT ); Tue, 6 Dec 2022 17:47:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229616AbiLFWqz (ORCPT ); Tue, 6 Dec 2022 17:46:55 -0500 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5A284AF12 for ; Tue, 6 Dec 2022 14:46:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670366804; x=1701902804; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=ToqmKAyyRaJ6ZoX99Yt1guKhk5QExAnBdA7MsFAd2mc=; b=n9qWsZDQNyvU8NQVLFtk/MSHNsO96nYIdwcJSva8juN8eK1V9SKUw9qr SFlijY7Q7qhs6Lk9ZmFe+WsVBrEDU5WxUkkhj4QGV7Gfs1gVbMkzuqgk7 AhgHK8TT+vTgUhgmlth8tMhhwjsLuVYsS3jW/XdUG+7MGVJauWTljrW1P vNG0f/2Ho0W/4PNrKahGUC5N5e0CtHMZE4Sgh+bYLdhYqkHI5n/+qOcq9 X5C9LPkwDugyQYNBjBIT00KF3hJvCbBNBlzwLAizj5Zo7DYko8lRV8xVf pMlDUjTRNpnUlNh1iUAyFKbYjCPnyNsVuCDAHxR13bZjgAr8dnAZtSEpg g==; X-IronPort-AV: E=McAfee;i="6500,9779,10553"; a="315462740" X-IronPort-AV: E=Sophos;i="5.96,223,1665471600"; d="scan'208";a="315462740" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Dec 2022 14:46:26 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10553"; a="714967830" X-IronPort-AV: E=Sophos;i="5.96,223,1665471600"; d="scan'208";a="714967830" Received: from yguo-mobl1.amr.corp.intel.com (HELO vverma7-desk1.local) ([10.212.82.140]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Dec 2022 14:46:26 -0800 From: Vishal Verma Date: Tue, 06 Dec 2022 15:46:23 -0700 Subject: [PATCH ndctl 1/2] clang-format: Align consecutive macros and #defines MIME-Version: 1.0 Message-Id: <20221206-vv-misc-v1-1-4c5bd58c90ca@intel.com> References: <20221206-vv-misc-v1-0-4c5bd58c90ca@intel.com> In-Reply-To: <20221206-vv-misc-v1-0-4c5bd58c90ca@intel.com> To: nvdimm@lists.linux.dev Cc: Dan Williams , Alison Schofield , Vishal Verma , linux-cxl@vger.kernel.org X-Mailer: b4 0.11.0-dev-b6525 X-Developer-Signature: v=1; a=openpgp-sha256; l=748; i=vishal.l.verma@intel.com; h=from:subject:message-id; bh=ToqmKAyyRaJ6ZoX99Yt1guKhk5QExAnBdA7MsFAd2mc=; b=owGbwMvMwCXGf25diOft7jLG02pJDMn9x5zaKuuNhYW47TcmeDFzfWqL5AnSae13VFCw/iCg6Pbk z9OOUhYGMS4GWTFFlr97PjIek9uezxOY4Agzh5UJZAgDF6cATIRDkpFhlstvaznps2y3G/8zaMjK3b LZnPXDSnOBdLjeT6kZqq8zGBn2vfV3+ufLMiPX+sHvV06vNi8IEzj12PG8bZ3JZ6O9CxRZAQ== X-Developer-Key: i=vishal.l.verma@intel.com; a=openpgp; fpr=F8682BE134C67A12332A2ED07AFA61BEA3B84DFF Precedence: bulk List-ID: X-Mailing-List: linux-cxl@vger.kernel.org Add AlignConsecutiveMacros: true so that blocks of consecutive #defines can be neatly aligned. Cc: Dan Williams Reported-by: Alison Schofield Signed-off-by: Vishal Verma Reviewed-by: Alison Schofield --- .clang-format | 1 + 1 file changed, 1 insertion(+) diff --git a/.clang-format b/.clang-format index b6169e1..9ea49bf 100644 --- a/.clang-format +++ b/.clang-format @@ -13,6 +13,7 @@ AccessModifierOffset: -4 AlignAfterOpenBracket: Align AlignConsecutiveAssignments: false AlignConsecutiveDeclarations: false +AlignConsecutiveMacros: true #AlignEscapedNewlines: Left # Unknown to clang-format-4.0 AlignOperands: true AlignTrailingComments: false