MISRA Discussion Forums
Code Formatter / Beautifyer for 14.8 and 14.9 ? - Printable Version

+- MISRA Discussion Forums (https://forum.misra.org.uk)
+-- Forum: MISRA C (https://forum.misra.org.uk/forumdisplay.php?fid=4)
+--- Forum: MISRA-C: 2004 rules (https://forum.misra.org.uk/forumdisplay.php?fid=17)
+---- Forum: 6.14 Control Flow (https://forum.misra.org.uk/forumdisplay.php?fid=46)
+---- Thread: Code Formatter / Beautifyer for 14.8 and 14.9 ? (/showthread.php?tid=29)



Code Formatter / Beautifyer for 14.8 and 14.9 ? - bmerkle - 04-05-2005

Hi there,

is there any Code Formatter / Beautifyer that reformats C code according to the MISRA rules, e.g. MISRA2 Rule 14.9 or Rule 14.8 or MISRA1 Rule59 ?

I know of artistic style (on sf) but unfortunately it has not the rule

kind regards,
Bernhard.


- Gavin McCall - 03-11-2005

MISRA-C Steering Team - 2/11/2005

MISRA do not recommend or promote any tools.

Others are free to answer your question.



- misra-c - 29-08-2006

Quote:MISRA-C Steering Team - 2/11/2005

MISRA do not recommend or promote any tools.

Others are free to answer your question.

Re-posted under official user name only.


Re: Code Formatter / Beautifyer for 14.8 and 14.9 ? - phaedsys - 30-08-2006

bmerkle Wrote:Hi there,

is there any Code Formatter / Beautifyer that reformats C code according to the MISRA rules, e.g. MISRA2 Rule 14.9 or Rule 14.8 or MISRA1 Rule59 ?

I know of artistic style (on sf) but unfortunately it has not the rule

kind regards,
Bernhard.

You are confusing a code formatter with a static analysis tool.

MISRA-C makes little or no comment on the layout and style of the code.

There are many tools that do MISRA-C checking but none AFAIK that wil automatically correct any posible rule transgressions.