On 09/17/2017 11:44 AM, Tom Tromey wrote:
+@code{@w{__VA_OPT__}} is also available in GNU C and GNU C++.

+{ /*              c99 c++ xnum xid c11 std digr ulit rlit udlit bincst digsep 
trig u8chlit vaopt */
+  /* GNUC89   */  { 0,  0,  1,  0,  0,  0,  1,   0,   0,   0,    0,     0,     
0,   0,      0 },
+  /* GNUC99   */  { 1,  0,  1,  1,  0,  0,  1,   1,   1,   0,    0,     0,     
0,   0,      0 },
+  /* GNUC11   */  { 1,  0,  1,  1,  1,  0,  1,   1,   1,   0,    0,     0,     
0,   0,      0 },
[...]

Do we want 1s for vaopt in the GNU rows, then? It seems to only be used for controlling the pedwarn about needing at least one argument for the variadic parameter.

+maybe_va_opt_error (cpp_reader *pfile, cpp_hashnode *node)

Do we also want to look at the va_opt option in this function, to complain if pedantic and it isn't set?

Jason

Reply via email to