LuchianMihai opened a new pull request, #15847:
URL: https://github.com/apache/nuttx/pull/15847

   ## Summary
   
   Simple fix for [15838](https://github.com/apache/nuttx/issues/15838)
   *Note:* The comments are also treated as statement:
   ```c
   case ':': /* error is thrown here */
     {
       do something
     }
   ```
   Can solve that corner case if needed also.
   
   ## Impact
   
   New style errors can be reported throughout the codebase.
   
   ## Testing
   
   Localy, running nxstyle over a wrongly formatted file.
   If case statement continues on the same line an error will be generated
   ```
   ~/Projects/nxspace/nuttx/tools/nxstyle.c:1203:14: error: Case statement 
should be on a new line
   ```
   
   
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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

Reply via email to