https://trac.cppcheck.net/ticket/11878#ticket
This commit is contained in:
parent
f91df64fec
commit
5bb4c6f5bc
|
@ -3231,7 +3231,10 @@ class MisraChecker:
|
||||||
if token.str == '{':
|
if token.str == '{':
|
||||||
token = token.link
|
token = token.link
|
||||||
|
|
||||||
if cppcheckdata.simpleMatch(token, "[ ]"):
|
# skip function pointer parameter types
|
||||||
|
if token.astOperand1 is None:
|
||||||
|
pass
|
||||||
|
elif cppcheckdata.simpleMatch(token, "[ ]"):
|
||||||
self.reportError(token, 18, 7)
|
self.reportError(token, 18, 7)
|
||||||
break
|
break
|
||||||
token = token.next
|
token = token.next
|
||||||
|
|
|
@ -1713,6 +1713,7 @@ struct {
|
||||||
} r18_7_struct; // 8.4
|
} r18_7_struct; // 8.4
|
||||||
struct {
|
struct {
|
||||||
uint16_t len;
|
uint16_t len;
|
||||||
|
int (*array_param_func_ptr)(char const *argv[], int argc); // no-warning
|
||||||
uint8_t data_1[ 19 ];
|
uint8_t data_1[ 19 ];
|
||||||
uint8_t data_2[ ]; // 18.7
|
uint8_t data_2[ ]; // 18.7
|
||||||
} r18_7_struct; // 8.4
|
} r18_7_struct; // 8.4
|
||||||
|
|
Loading…
Reference in New Issue