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

   ## Summary
   
   The standard asks for a blank line between the local declarations at the 
head of a function and the code.  A declaration is recognised by its shape, 
since no list of type names can be complete.
   
   ## Impact
   
   nxstyle fix
   
   ## Testing
   
   ```c
    41 int demo(int a)
    42 {                                                                        
                                                                                
                                                                                
                                    
    43   struct foo_s *p;                                                       
                                                                                
                                                                                
                                    
    44   int x;                                                                 
                                                                                
                                                                                
                                    
    45   x = a + 1;                                                             
                                                                                
                                                                                
                                    
    46                                                                          
                                                                                
                                                                                
                                    
    47   return x;                                                              
                                                                                
                                                                                
                                    
    48 }
   ```
   
   Before: clean.  After:
   
   ```
   test.c:45:2: error: Missing blank line after declarations
   ```
   


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