Add [] to a type extensions. Fixes false positives on: .attrs = (struct attribute *[]) {
Unified · Split
| @@ -323,7 +323,7 @@ sub build_types { · 322 unmodified lines | |||
| 323 | }x; | 323 | }x; |
| 324 | $Type = qr{ | 324 | $Type = qr{ |
| 325 | $NonptrType | 325 | $NonptrType |
| 326 | (?:[\s\*]+\s*const|[\s\*]+|(?:\s*\[\s*\])+)? | 326 | (?:(?:\s|\*|\[\])+\s*const|(?:\s|\*|\[\])+|(?:\s*\[\s*\])+)? |
| 327 | (?:\s+$Inline|\s+$Modifier)* | 327 | (?:\s+$Inline|\s+$Modifier)* |
| 328 | }x; | 328 | }x; |
| 329 | $Declare = qr{(?:$Storage\s+)?$Type}; | 329 | $Declare = qr{(?:$Storage\s+)?$Type}; |