MISRA Discussion Forums

Full Version: Rule 3.6: Reserved words and standard library function names
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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?
tria1312 Wrote:
Code:
u16_t f29( void );

But I dont see any reserved words or standard library function names.

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
names described below are reserved no matter what headers are included by the program.

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
types defined in the header.

Alternatively they may be thinking of the POSIX reservation of _t names.

stephen
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.
From the information posted, we cannot see any violations of Rule 3.6 in this code.

Please follow this up with the tool vendor.