From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=YT+ph9ri; spf=pass (domain: arm.com, ip: 40.107.7.73, mailfrom: alexei.fedorov@arm.com) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (EUR04-HE1-obe.outbound.protection.outlook.com [40.107.7.73]) by groups.io with SMTP; Fri, 23 Aug 2019 04:50:12 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=m8PA6wwaUhPnShgOYZIIMGWjegkEhVdpUiWa6JREPRo=; b=YT+ph9riDfhkdAW4Ohyj48jVau0iwGcpUIkq/Iipn4q7B1SsViXUt6/9MC2HLJmhG6aJSpYvIe3W8wrrdJk2Egu3NuWU2jUWzwfwPKMTPcaYUMz35u8ApjF75Rj6PZLcIIP7kiMkz2THCrUK9HZZhatKjyNvRmmxNedwfERmb88= Received: from AM4PR08CA0045.eurprd08.prod.outlook.com (2603:10a6:205:2::16) by AM5PR0801MB1843.eurprd08.prod.outlook.com (2603:10a6:203:3a::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2199.19; Fri, 23 Aug 2019 11:50:08 +0000 Received: from VE1EUR03FT046.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e09::205) by AM4PR08CA0045.outlook.office365.com (2603:10a6:205:2::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2199.14 via Frontend Transport; Fri, 23 Aug 2019 11:50:08 +0000 Authentication-Results: spf=temperror (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=temperror action=none header.from=arm.com; Received-SPF: TempError (protection.outlook.com: error in processing during lookup of arm.com: DNS Timeout) Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT046.mail.protection.outlook.com (10.152.19.226) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2199.13 via Frontend Transport; Fri, 23 Aug 2019 11:50:06 +0000 Received: ("Tessian outbound 8b8b6ad907d7:v27"); Fri, 23 Aug 2019 11:50:06 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: cd799ee2f0c58e87 X-CR-MTA-TID: 64aa7808 Received: from baa1079f189b.2 (ip-172-16-0-2.eu-west-1.compute.internal [104.47.0.50]) by 64aa7808-outbound-1.mta.getcheckrecipient.com id 6B502496-B891-4619-8534-5DCB19FB4FBB.1; Fri, 23 Aug 2019 11:50:01 +0000 Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01lp2050.outbound.protection.outlook.com [104.47.0.50]) by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id baa1079f189b.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384); Fri, 23 Aug 2019 11:50:01 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cSJWIw4zyELBQTJrTpXTI84tIUyPBvCYfx+YNiyD0p+S1RWvsOSXmCH9nQgtytrhCFFj8TSorPRG9CUzakux9T+AGo8qgNZrcZqVEsLXtLMyXry7RzpLwkG2hWaJGhH1itAmizevvL7mAwDpr+SWWWV0XeK+ceBa/me+8JhH0dG/g98aQQxeGb7oQRpPpEA8qjlaUhurH/+EqvvpCMHbXZ+HlscVG8qYXESR/0ysWU7MBUL/QEdkOJ3AF5yAYiqVmEly0xh+UptknYjLfsGBZArQRRvgpnxIlUZSsoqm+ONBdmb9E5BdNezowThAKTlgkhqT2FXQ0R5s0NEhYWUoag== 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-SenderADCheck; bh=ecbpW1HzA6ykmaNiS3lwyCRtAUyeHLdRz/YFLlWYKpQ=; b=SoRUQUeEv03Hyp94VsN3UcWk6n1uhstyGnf6oxHE4lKu33sjI+OnjZbVlOhRjcfWa0GteKUsGcTR4tez7BC0ysWbyJmk50Yp4BNWV3Pb0sehLuuE+FT1QVTOQnl2Tn+IfiXUP2sZXyBUNggZs/6t23uxENclah/LBSo85YnDvJTtNXyLwXwrjd6woxi/keCNmJTma2wYuyB82M6G+FFHaHH7Um+lAr9t3ip35avMGw8uuX+5AYzcg6pbp426oIy1i5ngKDjO+qZqEB93uM2K8SHtb7YTHR5FLSJ9tFPyqrI7IqlWbVmzpdQ3aLXUoIzbGk5v4fX5VkXbf/McDUX8jw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ecbpW1HzA6ykmaNiS3lwyCRtAUyeHLdRz/YFLlWYKpQ=; b=fps1huJQgnBGRj+E4sIfpoITsiuAqqSBzajGLWNBTfdSxJTkOa/C3ZVoS9wdXtQ81NcPFiywFxuz8t/+A/1HKFpH1AFBxPZNwhsFjRC4rW3EIzITPng3B5vGPohOy1kxH9BNN45kfAZ64PU/7ULmFPz8vX6gDNxx1D964PfKJ74= Received: from AM5PR0801MB1732.eurprd08.prod.outlook.com (10.169.244.21) by AM5PR0801MB1827.eurprd08.prod.outlook.com (10.169.247.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2199.19; Fri, 23 Aug 2019 11:49:59 +0000 Received: from AM5PR0801MB1732.eurprd08.prod.outlook.com ([fe80::50d7:cef5:ee39:2e83]) by AM5PR0801MB1732.eurprd08.prod.outlook.com ([fe80::50d7:cef5:ee39:2e83%9]) with mapi id 15.20.2178.020; Fri, 23 Aug 2019 11:49:59 +0000 From: "Alexei Fedorov" To: Sami Mujawar , "devel@edk2.groups.io" Subject: Re: [PATCH v1 16/19] DynamicTablesPkg: Option for VS2017 static code analysis Thread-Topic: [PATCH v1 16/19] DynamicTablesPkg: Option for VS2017 static code analysis Thread-Index: AQHVWaGd9nBmvcmup0azd5U46z6sL6cInnpS Date: Fri, 23 Aug 2019 11:49:59 +0000 Message-ID: References: <20190823105539.13260-1-sami.mujawar@arm.com>,<20190823105539.13260-17-sami.mujawar@arm.com> In-Reply-To: <20190823105539.13260-17-sami.mujawar@arm.com> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Authentication-Results-Original: spf=none (sender IP is ) smtp.mailfrom=Alexei.Fedorov@arm.com; x-originating-ip: [217.140.106.49] x-ms-publictraffictype: Email X-MS-Office365-Filtering-Correlation-Id: 58f43ddb-12bb-43a4-7f1b-08d727c00b15 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam-Untrusted: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:AM5PR0801MB1827; X-MS-TrafficTypeDiagnostic: AM5PR0801MB1827:|AM5PR0801MB1843: x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true x-ms-oob-tlc-oobclassifiers: OLM:1388;OLM:1388; x-forefront-prvs: 0138CD935C X-Forefront-Antispam-Report-Untrusted: SFV:NSPM;SFS:(10009020)(4636009)(396003)(39860400002)(346002)(376002)(366004)(136003)(189003)(199004)(19627405001)(66066001)(33656002)(2501003)(86362001)(6246003)(110136005)(25786009)(8936002)(6436002)(316002)(53936002)(8676002)(81156014)(81166006)(55016002)(9686003)(54896002)(52536014)(14444005)(5660300002)(256004)(71200400001)(71190400001)(64756008)(66446008)(7736002)(66556008)(74316002)(66476007)(76116006)(66946007)(229853002)(14454004)(478600001)(102836004)(53546011)(6506007)(99286004)(186003)(76176011)(26005)(486006)(476003)(105004)(11346002)(446003)(7696005)(3846002)(2906002)(6116002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM5PR0801MB1827;H:AM5PR0801MB1732.eurprd08.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info-Original: hUzwPSVilZhdDA3AirQ4ntwAFG87sV64Xdx77KZJuHAb3ndKdVVrINFcT8c2y6NXTv/VqHXTJ7/chc07eqp/V10+IuvROeSs1CI/y8isBPH6cuD3eMBPgdR1JQKreSZE0jCmHKQIbekwS4LN3EA7uQU59Dkz35+krL8zEAodmPwr7klQCjwslJamwHcWnPQGWObdoqV+wD0Sdeei7byyaq3TAXR5ajv//BnXKuIetqSrHVjdgdiJcJel+SPQFA1+R+umdpYzPRZgNn18kmzUcpCKO3C/lrlNQxi4qK5QONSeePZYzeH5LPmSODSjIdQZHCpC8vJ3++O4SGlRFEskKHcrVterNAt5oLItQX+BjQZUOSwoNInZPWjt79ysip6vZNnFveuBsxJbZXa/MnAdQGGNDqAtuDa+XMXy9f0HnDQ= MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB1827 Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Alexei.Fedorov@arm.com; Return-Path: Alexei.Fedorov@arm.com X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT046.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123;IPV:CAL;SCL:-1;CTRY:IE;EFV:NLI;SFV:NSPM;SFS:(10009020)(4636009)(136003)(396003)(346002)(376002)(39860400002)(2980300002)(40434004)(199004)(189003)(14454004)(186003)(6116002)(476003)(126002)(26005)(102836004)(71190400001)(105004)(81156014)(8676002)(9686003)(81166006)(7696005)(76176011)(6506007)(2906002)(26826003)(53546011)(2501003)(3846002)(25786009)(63370400001)(446003)(336012)(11346002)(63350400001)(478600001)(99286004)(486006)(5660300002)(36906005)(6246003)(70206006)(70586007)(66066001)(7736002)(74316002)(5024004)(16586007)(19627405001)(110136005)(8936002)(55016002)(76130400001)(86362001)(14444005)(52536014)(33656002)(54896002)(229853002)(22756006)(356004)(316002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM5PR0801MB1843;H:64aa7808-outbound-1.mta.getcheckrecipient.com;FPR:;SPF:TempError;LANG:en;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;A:1;MX:1; X-MS-Office365-Filtering-Correlation-Id-Prvs: d5006b93-97eb-4f81-b739-08d727c006df X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(710020)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:AM5PR0801MB1843; X-Forefront-PRVS: 0138CD935C X-Microsoft-Antispam-Message-Info: DBXV5/zo/ZHalWqhw5KVfrxroWmDV4QDaPWz2z8MTkwdlmIeajAI6ZPnQCZdInEwrq4bHCsGEnWNZTSwuXBxgZ2/DZLjJKGROezFRKZF3AJkVcGJmUPOwgrelv6nNW+bpCzBEwcQf8PsMEn21qDxLGLjSwt+LJ+2zqJsWnd918izACQkb4Taft5WyLgPvLsKI2F6se4qZlleriw507/yeRHkLf/DpYXfIszV0B0CuIeCC91FIeeNBSRmDYFbtwN06DkUfLb/JP+lhOdnBAIPJARocd3iIWcKiZY87qrBSGerUO6YL7ouVRD5rdkHY1Y/tKzUmEHsGnvCmuQu6ROmRs+HBKQ5eu/9bPIxvll5l66EqexQLIQFgkfL5/NRclUZSoUJH4ZiOHMesKVsIDY2pS8Ml/vkTp4ffhL7zCu8b5k= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Aug 2019 11:50:06.8055 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 58f43ddb-12bb-43a4-7f1b-08d727c00b15 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB1843 Content-Language: en-GB Content-Type: multipart/alternative; boundary="_000_AM5PR0801MB1732FD66C1F71ACEF59298B99AA40AM5PR0801MB1732_" --_000_AM5PR0801MB1732FD66C1F71ACEF59298B99AA40AM5PR0801MB1732_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Alexei Fedorov Alexei ________________________________ From: Sami Mujawar Sent: 23 August 2019 11:55 To: devel@edk2.groups.io Cc: Sami Mujawar ; Alexei Fedorov ; leif.lindholm@linaro.org ; Matteo Carlini = ; nd Subject: [PATCH v1 16/19] DynamicTablesPkg: Option for VS2017 static code a= nalysis Add build option STATIC_ANALYSIS to enable VS2017 static code analysis. Signed-off-by: Sami Mujawar --- DynamicTablesPkg/DynamicTablesPkg.dsc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/DynamicTablesPkg/DynamicTablesPkg.dsc b/DynamicTablesPkg/Dynam= icTablesPkg.dsc index dfe6c07111059cdd3eed23becf5000c04270bd9c..6ff6ff019e080f355ca24c9d05f= 71f8b85ab9077 100644 --- a/DynamicTablesPkg/DynamicTablesPkg.dsc +++ b/DynamicTablesPkg/DynamicTablesPkg.dsc @@ -4,7 +4,7 @@ # Copyright (c) 2019, Linaro Limited. All rights reserved.
# Copyright (c) 2019, ARM Limited. All rights reserved.
# -# SPDX-License-Identifier: BSD-2-Clause-Patent +# SPDX-License-Identifier: BSD-2-Clause-Patent # ## @@ -39,3 +39,10 @@ [Components.common] [BuildOptions] *_*_*_CC_FLAGS =3D -DDISABLE_NEW_DEPRECATED_INTERFACES + +!ifdef STATIC_ANALYSIS + # Check all rules + # Inhibit C6305: Potential mismatch between sizeof and countof quantitie= s. + *_VS2017_*_CC_FLAGS =3D /wd6305 /analyze +!endif + -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)' IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you. --_000_AM5PR0801MB1732FD66C1F71ACEF59298B99AA40AM5PR0801MB1732_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Reviewed-by: Alexei Fedorov <Alexei.Fedorov@arm.com>

Alexei


From: Sami Mujawar <sami= .mujawar@arm.com>
Sent: 23 August 2019 11:55
To: devel@edk2.groups.io <devel@edk2.groups.io>
Cc: Sami Mujawar <Sami.Mujawar@arm.com>; Alexei Fedorov <Al= exei.Fedorov@arm.com>; leif.lindholm@linaro.org <leif.lindholm@linaro= .org>; Matteo Carlini <Matteo.Carlini@arm.com>; nd <nd@arm.com&= gt;
Subject: [PATCH v1 16/19] DynamicTablesPkg: Option for VS2017 static= code analysis
 
Add build option STATIC_ANALYSIS to enable VS2017 = static
code analysis.

Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
---
 DynamicTablesPkg/DynamicTablesPkg.dsc | 9 +++++&#= 43;++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/DynamicTablesPkg/DynamicTablesPkg.dsc b/DynamicTablesPkg/Dynam= icTablesPkg.dsc
index dfe6c07111059cdd3eed23becf5000c04270bd9c..6ff6ff019e080f355ca24c9d05f= 71f8b85ab9077 100644
--- a/DynamicTablesPkg/DynamicTablesPkg.dsc
+++ b/DynamicTablesPkg/DynamicTablesPkg.dsc
@@ -4,7 +4,7 @@
 #  Copyright (c) 2019, Linaro Limited. All rights reserved.<B= R>
 #  Copyright (c) 2019, ARM Limited. All rights reserved.<BR&g= t;
 #
-#  SPDX-License-Identifier: BSD-2-Clause-Patent
+#  SPDX-License-Identifier: BSD-2-Clause-Patent
 #
 ##
 
@@ -39,3 +39,10 @@ [Components.common]
 
 [BuildOptions]
   *_*_*_CC_FLAGS =3D -DDISABLE_NEW_DEPRECATED_INTERFACES
+
+!ifdef STATIC_ANALYSIS
+  # Check all rules
+  # Inhibit C6305: Potential mismatch between sizeof and countof = quantities.
+  *_VS2017_*_CC_FLAGS =3D /wd6305 /analyze
+!endif
+
--
'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'


IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in any medium. Thank you. --_000_AM5PR0801MB1732FD66C1F71ACEF59298B99AA40AM5PR0801MB1732_--