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

Re: Misra rule 10.3 violations report script



On Thu, 28 Sep 2023, Luca Fancellu wrote:
> Hi all,
> 
> In the last MISRA meeting Stefano told me about the Rule 10.3 and that we 
> have a lot of violations,
> but GCC has a way to list them as written in rules.rst.
> 
> So the issue was just that we have a lot of violations, most of them coming 
> from headers and the
> Developer might feel a bit lost since the number is very high, so I’ve 
> developed this script to take
> the GCC build log and create a list of unique occurrences of the violations 
> sorted in descending
> order, so that who has a bit of time can try to fix some of those and maybe 
> can start from the top
> of the list to fix as many as possible occurrences.
> 
> I attach the script as patch file.

Thanks Luca! Actually I think this is great! The script makes it much
easier to use the GCC output to address 10.3 violations. I think we
should have it in the xen.git tree.

Thanks to the script I was able to quickly address the top violation in
bitmap.h.

 


Rackspace

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