From nobody Sat Feb 7 12:11:27 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+107811+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+107811+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=linux.microsoft.com ARC-Seal: i=1; a=rsa-sha256; t=1692220527; cv=none; d=zohomail.com; s=zohoarc; b=fIKNQlEErCoByN5+ni599dYlQyQSOpJNdy2XuZAvL8c7If4lPPqoXtniqjSqsaBdXmmHPJQJ6PMb/e4wa4D45+RrcBJUeoP/IpD+UxGR0R5Hl3hov5RJFvzV7SQadeSvX7yTEazLPKvwKy4pHc8HwszUFPHkRAmwu6YnFtq9ako= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692220527; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=tGgDMwTg9vnIbC2axpbDx6XtD+MmzEzkRk/IKRHZcMQ=; b=jxHlCh8/VDQOUI/xonYKkFD/nfILdH5vUx0BmybLsnVIY8fzQg1xgOs8zxv6DKfmf1BKNmXSkhjh8wCoqa44E73I74HL+ndcgdPXMhFUgyuTiO4i2YmflXszIU6vxvu3OcMmvtQtr0hQnsQ5Jzwu8JyvEkbeVUpLIDmL8ESpEoY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+107811+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1692220527041380.26712051892105; Wed, 16 Aug 2023 14:15:27 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=HYtgnoKLKoN22LKNpIixbwozfA5Ba7iHWrE/5S5wmss=; c=relaxed/simple; d=groups.io; h=DKIM-Filter:From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1692220526; v=1; b=KTerhbhlSbQTNFi02SpU1N0t6nHx6zlVNKytoNG4h+HYBhKIkGhO3RvzGjPHEUIUQfJ8q6wh 6VylJ87vJtSRs19F3A3Zc4QzPRweGf6AvFSZcv5I/hLoUVaSS6TdbH4mXeNNv3wzCSjdL1nUweL 0BQqzvRRlJIwjgEElhLYUbH0= X-Received: by 127.0.0.2 with SMTP id 2CIdYY1788612xNLJ4QldDVi; Wed, 16 Aug 2023 14:15:26 -0700 X-Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mx.groups.io with SMTP id smtpd.web10.172576.1692220525407281626 for ; Wed, 16 Aug 2023 14:15:25 -0700 X-Received: from vivian-P520.redmond.corp.microsoft.com (unknown [131.107.1.251]) by linux.microsoft.com (Postfix) with ESMTPSA id 1A511211F7A1; Wed, 16 Aug 2023 14:15:25 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 1A511211F7A1 From: "VivianNK" To: devel@edk2.groups.io Cc: Sean Brogan , Michael Kubacki , Michael D Kinney , Liming Gao , Michael Kubacki Subject: [edk2-devel] [PATCH v2 2/7] .pytool: Add cpp support to uncrustify plugin Date: Wed, 16 Aug 2023 14:15:17 -0700 Message-ID: <20230816211523.12-3-vnowkakeane@linux.microsoft.com> In-Reply-To: <20230816211523.12-1-vnowkakeane@linux.microsoft.com> References: <20230816211523.12-1-vnowkakeane@linux.microsoft.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,vnowkakeane@linux.microsoft.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: oUSsxs1VhroDyqwg1DcdCe5Dx1787277AA= Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1692220527321100001 Content-Type: text/plain; charset="utf-8" Modified the uncrustify config to apply cpp specific formatting rules. Modified uncrustify check to include *.cpp files. Cc: Sean Brogan =20 Cc: Michael Kubacki =20 Cc: Michael D Kinney =20 Cc: Liming Gao =20 Signed-off-by: Vivian Nowka-Keane Reviewed-by: Michael Kubacki --- .pytool/Plugin/UncrustifyCheck/UncrustifyCheck.py | 2 +- .pytool/Plugin/UncrustifyCheck/uncrustify.cfg | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pytool/Plugin/UncrustifyCheck/UncrustifyCheck.py b/.pytool/Pl= ugin/UncrustifyCheck/UncrustifyCheck.py index 8978ffc443bf..17f77b48d954 100644 --- a/.pytool/Plugin/UncrustifyCheck/UncrustifyCheck.py +++ b/.pytool/Plugin/UncrustifyCheck/UncrustifyCheck.py @@ -110,7 +110,7 @@ class UncrustifyCheck(ICiBuildPlugin): # A package can add any additional paths with "AdditionalIncludePaths" # A package can remove any of these paths with "IgnoreStandardPaths" # - STANDARD_PLUGIN_DEFINED_PATHS =3D ("*.c", "*.h") + STANDARD_PLUGIN_DEFINED_PATHS =3D ("*.c", "*.h", "*.cpp") =20 # # The Uncrustify application path should set in this environment varia= ble diff --git a/.pytool/Plugin/UncrustifyCheck/uncrustify.cfg b/.pytool/Plugin= /UncrustifyCheck/uncrustify.cfg index 8506c3333715..d7e86a6e57e6 100644 --- a/.pytool/Plugin/UncrustifyCheck/uncrustify.cfg +++ b/.pytool/Plugin/UncrustifyCheck/uncrustify.cfg @@ -215,7 +215,7 @@ indent_braces =3D false indent_braces_no_class =3D false indent_braces_no_func =3D true indent_braces_no_struct =3D false -indent_class =3D false +indent_class =3D true indent_class_colon =3D false indent_cmt_with_tabs =3D false # Whether to indent comm= ents that are not at a brace level with tabs on # a tabstop. Requires inde= nt_with_tabs=3D2. If false, will use spaces. @@ -223,7 +223,7 @@ indent_col1_comment =3D true indent_col1_multi_string_literal=3D true indent_comma_paren =3D true indent_else_if =3D true -indent_extern =3D false +indent_extern =3D true indent_first_bool_expr =3D true =20 indent_func_def_param_paren_pos_threshold =3D 0 --=20 2.41.0.windows.3 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#107811): https://edk2.groups.io/g/devel/message/107811 Mute This Topic: https://groups.io/mt/100788667/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-