|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XEN PATCH] automation/eclair_analysis: fix MISRA Rule 20.7 regression in self-tests.h
Acked-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
On Mon, 9 Sep 2024, Jan Beulich wrote:
> On 08.09.2024 15:27, Nicola Vetrini wrote:
> > --- a/docs/misra/deviations.rst
> > +++ b/docs/misra/deviations.rst
> > @@ -533,6 +533,14 @@ Deviations related to MISRA C:2012 Rules:
> > to incur in the risk of being misused or lead to developer
> > confusion, and
> > refactoring it to add parentheses breaks its functionality.
> > - Tagged as `safe` for ECLAIR.
> > +
> > + * - R20.7
> > + - The macros `{COMPILE,RUNTIME}_CHECK` defined in
> > + `xen/include/xen/self-tests.h` are allowed not to parenthesize their
> > + arguments, to allow function-like macros to be tested as well as
> > + functions. Given the specialized use of these macros and their
> > limited
> > + usage scope, omitting parentheses is deemed unlikely to cause
> > issues.
> > + - Tagged as `deliberate` for ECLAIR.
>
> As on earlier occasions my take here again is that this is going too far:
> Beside the "fn" parameter, all other parameter uses should be properly
> parenthesized. I have no idea whether this can be expressed for Eclair,
> but at least the verbal deviation description should imo be no more lax
> than necessary.
I can add a mention to the "fn" parameter on commit
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |