Daniel Stenberg d567cca1de
checksrc: fix SPACEBEFOREPAREN for conditions starting with "*"
The open paren check wants to warn for spaces before open parenthesis
for if/while/for but also for any function call. In order to avoid
catching function pointer declarations, the logic allows a space if the
first character after the open parenthesis is an asterisk.

I also spotted what we did not include "switch" in the check but we should.

This check is a little lame, but we reduce this problem by not allowing
that space for if/while/for/switch.

Reported-by: Emanuele Torre
Closes #11044
2023-04-27 17:24:47 +02:00
..
2021-09-09 07:53:42 +02:00
2023-02-10 08:28:58 +01:00
2023-03-15 00:10:21 +01:00
2023-04-14 09:23:04 +02:00
2023-03-30 10:56:14 +02:00
2023-01-29 16:03:40 +01:00
2023-04-25 23:16:51 +02:00
2023-04-25 23:16:51 +02:00
2023-04-25 12:38:38 +02:00
2023-02-05 03:15:08 -05:00
2023-04-14 09:26:26 +02:00
2023-04-25 12:38:38 +02:00
2023-04-25 23:16:51 +02:00
2023-04-25 12:38:38 +02:00
2023-02-24 17:24:01 +01:00
2023-03-05 19:55:14 +00:00
2023-02-28 08:11:55 +01:00
2023-04-25 17:40:15 +02:00
2023-04-25 12:38:38 +02:00
2023-04-25 23:16:51 +02:00
2023-04-25 12:38:38 +02:00
2023-04-25 12:38:38 +02:00
2023-04-25 12:38:38 +02:00
2023-04-25 12:38:38 +02:00
2023-04-14 09:29:33 +02:00
2023-04-27 11:08:48 +02:00
2023-04-25 23:16:51 +02:00