This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Add support for __VA_OPT__
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Wed, 27 Sep 2017 10:28:55 -0400
- Subject: [binutils-gdb] Add support for __VA_OPT__
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT a9bbfbd85fddfea2db30810c33c4bb130a2ef773 ***
Author: Tom Tromey <tom@tromey.com>
Branch: master
Commit: a9bbfbd85fddfea2db30810c33c4bb130a2ef773
Add support for __VA_OPT__
C++2a adds a "__VA_OPT__" feature that can be used to control the
pesky "," emission when the final (variable) argument of a variadic
macro is empty. This patch implements this feature for gdb. (A patch
to implement it for gcc is pending.)
gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>
* macroexp.c (get_next_token_for_substitution): New function.
(substitute_args): Call it. Check for __VA_OPT__.
gdb/testsuite/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>
* gdb.base/macscp.exp: Add __VA_OPT__ tests.