diff options
author | Tom Tromey <tom@tromey.com> | 2017-09-17 20:36:41 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-09-27 07:51:33 -0600 |
commit | a9bbfbd85fddfea2db30810c33c4bb130a2ef773 (patch) | |
tree | e8e03252fbd330c15075d6d2a45520985e88c65f /gdb/guile | |
parent | 19485196044b2521af979f1e5c4a89bfb90fba0b (diff) | |
download | gdb-a9bbfbd85fddfea2db30810c33c4bb130a2ef773.zip gdb-a9bbfbd85fddfea2db30810c33c4bb130a2ef773.tar.gz gdb-a9bbfbd85fddfea2db30810c33c4bb130a2ef773.tar.bz2 |
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.
Diffstat (limited to 'gdb/guile')
0 files changed, 0 insertions, 0 deletions