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

   ## Summary
   
   tools/nxstyle: indent code against its enclosing brace, not modulo 4
   
   
   ## Impact
   
   nuttx standard compatibility
   
   ## Testing
   
   correctly detect wrong alignment like below:
   
   ```
   int demo(int a)
   {
     switch (a)
       {
           case 1:      /* case label belongs at column 6 */
             a++;
             break;
   
         default:
                 a--;
             break;
       }
   
         if (a > 0)     /* statement belongs at column 2 */
           {
             a = 0;
           }
   
     return a;
   }
   
   ```
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to