LuchianMihai opened a new pull request, #12794: URL: https://github.com/apache/nuttx/pull/12794
## Summary Looking through issues, I've found #12144. I thought that it had an easy fix, but... Throughout the code base I saw that comments can also be present on the same line as the if statement. Although the documentation states that they are discouraged, it is still valid "syntax". Also, nxstyle does not check for curly braces on for, (and now) if statements. Neither on switch case (but without parenthesis, won't be valid c syntax). So maybe for this case we need an common solution that I've not included in this PR. ## Impact Single line if statements will be print error. Comments on the same line as the if statements will also print an error. ## Testing -- 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]
