]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Use std::vector in add_using_directive
authorTom Tromey <tom@tromey.com>
Wed, 6 Sep 2017 23:18:23 +0000 (17:18 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 9 Sep 2017 20:10:51 +0000 (14:10 -0600)
commiteb1e02fd05688c28686a02f197c5e7cb0a5d6a27
treeca15494cfc7a6c4c4a4addd3f67277249a682fd8
parent0fc21fd8cf92de78c3c383378e70a2955e2631c3
Use std::vector in add_using_directive

This changes add_using_directive to accept a std::vector and then
changes the callers.  This allows removing a cleanup.

ChangeLog
2017-09-09  Tom Tromey  <tom@tromey.com>

* namespace.h (add_using_directive): Update.
* namespace.c (add_using_directive): Change type of excludes to
std::vector.
* dwarf2read.c (read_import_statement): Use std::vector.
(read_namespace): Update.
* cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
gdb/ChangeLog
gdb/cp-namespace.c
gdb/dwarf2read.c
gdb/namespace.c
gdb/namespace.h