devel/cdecl: upgrade to 11.10
ChangeLog:
Pre-C99 implicit int
Added more support for pre-C99 implicit int:
explain *p pointer to int
explain *p, i pointer to int, int
explain *a[4] array 4 of pointer to int
explain *f() function returning pointer to int
explain (*p) // pointer to int -- unnecessary ()
const void function parameters
const (and volatile) qualifiers for void as a function "parameter" (even via a typedef) are now correctly flagged as an error:
void f1(void); OK
void f2(const void); error
typedef void Void;
void f3(Void); // OK
typedef const void CVoid;
void f4(CVoid); // error
Redefinition check in C++
C++ doesn't support tentative definitions, so:
int i, i; // OK in C; error in C++
is always an error in C++ even if the types match.
Restricted pointer to non-object
A restricted pointer to a non-object, e.g., function, is now correctly flagged as an error:
int (*restrict pf)(); // error