mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 14:27:37 +08:00
Restrict check of right of code comments to #define in case of preprocessor lines
This commit is contained in:
committed by
patacongo
parent
46b8347217
commit
fbe65a2d7d
+8
-5
@@ -941,12 +941,15 @@ int main(int argc, char **argv, char **envp)
|
|||||||
ncomment++;
|
ncomment++;
|
||||||
}
|
}
|
||||||
|
|
||||||
rhcomment = n;
|
if (!strncmp(&line[ii], "define", 6))
|
||||||
if (prevrhcmt != 0 && n != prevrhcmt)
|
|
||||||
{
|
{
|
||||||
rhcomment = prevrhcmt;
|
rhcomment = n;
|
||||||
WARN("Wrong column position of comment right of code",
|
if (prevrhcmt != 0 && n != prevrhcmt)
|
||||||
lineno, n);
|
{
|
||||||
|
rhcomment = prevrhcmt;
|
||||||
|
WARN("Wrong column position of comment right of code",
|
||||||
|
lineno, n);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user