[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] docs/misra: add Rules 8.2, 8.3, 8.14


  • To: Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 21 Jun 2023 09:27:52 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=OYeZO+PfpbyGcZM/QTnmiajuf3q3Xwky0uctM6/Eox8=; b=kZFosY4aILAFfpdItGCHbhw8yzwElt9aVxYz8I0vZFFQvtbs0/fr6TKwrSlNejyUzXLbopkJkerleltOqdsJTWGquhnQ6znzcWC/SzQ/kwUitJ1TF2QxdG48o64pPcAqt8eBl6Vfji+IbupBigOgFLdfEHmI+m5dFY6Pe4odTOoHAAVpylLRsz2ROLRbYWsFQyf13zRedmYwfwlDVrZY5AiEW0PUaXSGE9N733Lbr4NfwqwopKNopZ2nIVBLOxHyJlDgIwUM3GBma6LxtFiaDnvhMWnlqmwPp45Aloyt//ZGUPkIs8qWp3N5LyQrvftGISt1FNYQa9l6zIdMN5OVpw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hi7wm8rwqf2RC/B+wEq4QmY17kagfsske03Rxlox3mSrycNBW4PEyzvb8QLvIv6RmjlbUqfd5wc4WvXpcK2ILzOBtToLh+dO0lYArxHlwgGEw/Yrs7OEmjFg0Weyc0OF6I2RMA+3y1MoS1muZQlYhLA4rY/ldIde8hLuNpeijnrq2RIxO4b+5iEehjSbLRhHytyRNXLRdaFRRs0ZMkPTlK60nrGqQsg4VWVYE0gvhvD4hHY2gDIapLthnfznGO40D7OgkUF6ISaj4UrMVianLWtj5hDqVpUdJpmjNLS577/23pJI6MRXg2zpCPPdoPweSHjEm8vrmzqDDcv4atjJyg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: julien@xxxxxxx, andrew.cooper3@xxxxxxxxxx, roger.pau@xxxxxxxxxx, bertrand.marquis@xxxxxxx, roberto.bagnara@xxxxxxxxxxx, Stefano Stabellini <stefano.stabellini@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 21 Jun 2023 07:28:16 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 21.06.2023 03:26, Stefano Stabellini wrote:
> --- a/docs/misra/rules.rst
> +++ b/docs/misra/rules.rst
> @@ -213,6 +213,17 @@ maintainers if you want to suggest a change.
>       - Types shall be explicitly specified
>       -
>  
> +   * - `Rule 8.2 
> <https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_08_02.c>`_
> +     - Required
> +     - Function types shall be in prototype form with named parameters
> +     -
> +
> +   * - `Rule 8.3 
> <https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_08_03.c>`_
> +     - Required
> +     - All declarations of an object or function shall use the same
> +       names and type qualifiers
> +     -

I think we want to deal with uses of const when not qualifying a pointed-to
type: One approach is to simply say we don't use const like this (and the
few uses there are should then go away). The other, if we deem this a
valuable feature, would be to make a project-wide exception for this case,
as having such const in declarations is meaningless and hence at the risk
of being confusing or hampering readability.

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.