nuttx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] [incubator-nuttx] hartmannathan opened a new pull request #1067: nxstyle: Allow Hz, KHz, GHz in identifiers
Date Mon, 18 May 2020 23:32:49 GMT

hartmannathan opened a new pull request #1067:

   ## Summary
   Per the coding standard, we allow MHz as one of the few allowed
   exceptions to the identifier case rules.
   However, because this exception specifically looked for "MHz" we
   would generate undeserved nxstyle errors for Hz, KHz, GHz.
   This change adds recognition of any Hz value by eliminating the
   requirement for Hz to be preceded by M.
       * main(): Eliminate requirement for Hz to be preceded by M to
         match the rule for allowed mixed case identifier. Update
         relevant comments.
   Mailing list discussion archived at:
   ## Impact
   Several undeserved nxstyle errors will be eliminated for identifiers such as GPIO_SPEED_400KHz,
which are allowed, but were not recognized by the rule because it didn't match «MHz».
   ## Testing
   - Compiles without errors or warnings.
   - No longer produces undeserved errors for GPIO_SPEED_400KHz.
   - nxstyle passes nxstyle.

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:

View raw message