You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/04/28 14:55:08 UTC

[GitHub] [incubator-nuttx] patacongo opened a new issue #901: nxstyle: Does not do sufficient check naming

patacongo opened a new issue #901:
URL: https://github.com/apache/incubator-nuttx/issues/901


   The coding standard document (https://cwiki.apache.org/confluence/display/NUTTX/Coding+Standard) specifies the naming standards to be used in C source files.  This includes case and naming ornmentation.  For example, structure names should be all lower case and end with the suffix _s.  Unions and enums are similar but should end in _u and _e, respectively.  Global variable names should be lower case and begin with the prefix g_.
   
   None of here are checked.  I recently saw code with:
   
         struct XYZ
         {
           int16_t d[3];
         };
   
   No error was reported even though the structure name is upper case and does not contain the prefix _s.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org