From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 3EAB6941C84 for ; Wed, 16 Aug 2023 21:15:29 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=kqW0epz5ppGkjdgvCa1qrHIiBTTKzUH2SKMwhrP8N08=; 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=1692220527; v=1; b=SynUS+R8y9boPoTNiWtuPfhok3n2EAjLUkfqHhfmvT9bsbCsLh/oZh821ImbVOetjU7yHkDb NLlZmmAus1/gCG+R5XHLc6ckxsxD56Phs5oChbYam/yVMxem3FQdjin8R4bTUEKV1/gocuYNFxl f03KPREugUkhl5d84r6UKD7A= X-Received: by 127.0.0.2 with SMTP id tY23YY7687511xhjSOawaskx; Wed, 16 Aug 2023 14:15:27 -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: 0uxIEAUHco1BLZvpUkDZ2R4sx7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=SynUS+R8; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=linux.microsoft.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io 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"= =0D # A package can remove any of these paths with "IgnoreStandardPaths"=0D #=0D - STANDARD_PLUGIN_DEFINED_PATHS =3D ("*.c", "*.h")=0D + STANDARD_PLUGIN_DEFINED_PATHS =3D ("*.c", "*.h", "*.cpp")=0D =0D #=0D # The Uncrustify application path should set in this environment varia= ble=0D 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=0D indent_braces_no_func =3D true=0D indent_braces_no_struct =3D false=0D -indent_class =3D false=0D +indent_class =3D true=0D indent_class_colon =3D false=0D indent_cmt_with_tabs =3D false # Whether to indent comm= ents that are not at a brace level with tabs on=0D # a tabstop. Requires inde= nt_with_tabs=3D2. If false, will use spaces.=0D @@ -223,7 +223,7 @@ indent_col1_comment =3D true indent_col1_multi_string_literal=3D true=0D indent_comma_paren =3D true=0D indent_else_if =3D true=0D -indent_extern =3D false=0D +indent_extern =3D true=0D indent_first_bool_expr =3D true=0D =0D indent_func_def_param_paren_pos_threshold =3D 0=0D --=20 2.41.0.windows.3 -=-=-=-=-=-=-=-=-=-=-=- 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/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-