alx-tools / Betty

Holberton-style C code checker written in Perl
GNU General Public License v3.0
1.26k stars 1.77k forks source link

Betty does not support array pointer syntax in function documentation #35

Open patrickdeyoreo opened 2 years ago

patrickdeyoreo commented 2 years ago

Pointer to array syntax such as int (*array)[10] is not supported for function parameters.

For example, the following code throws the following warnings, indicating that the parameter listint_t *(*buckets)[10] is not parsed correctly.

/**
 * alloc_buckets - dynamically allocate buckets for each digit
 *
 * @array: array of integers to be sorted
 * @size: number of elements in the array to be sorted
 * @factor: factor of digit on which to sort
 * @buckets: pointer to array of pointers to buckets
 */
static void alloc_buckets(const int *array, size_t size, int factor, listint_t *(*buckets)[10])
105-radix_sort.c:81: warning: No description found for parameter or member '(*buckets'
105-radix_sort.c:82: warning: Excess function parameter 'buckets' description in 'alloc_buckets'