mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
fix: nxstyle: recognize the division operator as a comment.
N/A the nxstyle check tool recognizes the division operator as a comment, check the following content to determine whether it is a comment. Change-Id: Id07c6668489895b45a1042794bc3acca66cd3c47 Signed-off-by: yangjiukui <yangjiukui@xiaomi.com>
This commit is contained in:
+3
-1
@@ -2832,7 +2832,9 @@ int main(int argc, char **argv, char **envp)
|
||||
*/
|
||||
|
||||
if ((bstatm || /* Begins with C keyword */
|
||||
(line[indent] == '/' && bfunctions)) && /* Comment in functions */
|
||||
(line[indent] == '/' &&
|
||||
bfunctions &&
|
||||
line[indent + 1] == '*')) && /* Comment in functions */
|
||||
!bswitch && /* Not in a switch */
|
||||
dnest == 0) /* Not a data definition */
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user