Rule 3.6: Reserved words and standard library function names - 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.3 Documentation (https://forum.misra.org.uk/forumdisplay.php?fid=30) +---- Thread: Rule 3.6: Reserved words and standard library function names (/showthread.php?tid=478) |
Rule 3.6: Reserved words and standard library function names - tria1312 - 12-03-2008 Hi, I'm using a tool from the USA called codechk. When performing check on my code I get this message: Code: u16_t f29( void ); Quote:error: (REQUIRED) MISRA rule 116 ( 3.6 ) violated: Reserved words and standard library function names shall not be used { DECL } But I dont see any reserved words or standard library function names. Can anyone help me out? Do you need some more code or infos? Bjoern Rule 3.6 and codechk - MMouse - 13-03-2008 I think you are asking the question in the wrong place. Ask the Codechk people why their tool is wrong.... The words quoted inthe error message are not the correct rule words.. This indicates they may not have authorisation to use the actual words DO you have a link to this tool? Re: Rule 3.6: Reserved words and standard library function n - sparker - 14-03-2008 tria1312 Wrote: I wonder if they are thinking of the C99 wording (in 7.2.6 "Future Library Directions"). ISO/IEC 9899:1999 Wrote:The following names are grouped under individual headers for convenience. All external and in section 7.26.8 "Integer types " ISO/IEC 9899:1999 Wrote:Typedef names beginning with int or uint and ending with _t may be added to the Alternatively they may be thinking of the POSIX reservation of _t names. stephen - MMouse - 14-03-2008 Without more information on the tool all we can do is speculate. However any tool that is using C99 and POSIX rules and claiming to check for MISRA-C in this fashion is to say the least dubious. Re: Rule 3.6: Reserved words and standard library function names - misra-c - 21-05-2008 From the information posted, we cannot see any violations of Rule 3.6 in this code. Please follow this up with the tool vendor. |