tools/nxstyle: fix nxstyle check for pointer to function types

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
Petro Karashchenko 2021-11-25 07:06:35 +02:00 committed by Gustavo Henrique Nihei
parent 510154299b
commit 298c372afa

View File

@ -2469,7 +2469,7 @@ int main(int argc, char **argv, char **envp)
{
/* REVISIT: This gives false alarms on syntax like *--ptr */
if (line[n - 1] != ' ')
if (line[n - 1] != ' ' && line[n - 1] != '(')
{
ERROR("Operator/assignment must be preceded "
"with whitespace", lineno, n);