[cfe-dev] c99 flexible array & libclang
Mickaël Guérin
kael at crocobox.org
Sun Mar 18 05:24:14 PDT 2012
Le 18 mars 2012 à 12:12, Matthieu Monrocq a écrit :
>
> -1 seems better to me as arrays of size explicitly set to 0 are possible (and were indeed used prior to the introduction of flexible arrays), so -1 gives the opportunity to distinguish between `[]` and `[0]`.
you already can distinguish between foo[] and foo[0] : they don't have the same type (IncompleteArray vs ConstantArray)
--
Mickaël.
More information about the cfe-dev
mailing list