patacongo opened a new pull request #173: tools/nxstyle.c: Detect blank line before opening left brace URL: https://github.com/apache/incubator-nuttx/pull/173 Add logic to detect check for left brace in first column, but preceded by a blank line. That should never happen for the outermost opening branch (but could happen with internal compound statements). Consider junk.c for example: /**************************************************************************** * xx ****************************************************************************/ /**************************************************************************** * Private Types ****************************************************************************/ struct foo_s { int bar; }; /**************************************************************************** * Public Functions ****************************************************************************/ int dofoo(int barin) { barout = barin; return barout; } nxstyle not detects these problems: $ tools/nxstyle.exe junk.c junk.c:11:0: error: Blank line before opening left brace junk.c:21:0: error: Blank line before opening left brace
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services
