]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Use an iterator range for 'using' directives
authorTom Tromey <tromey@adacore.com>
Wed, 23 Oct 2024 16:50:32 +0000 (10:50 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 11 Nov 2024 14:51:05 +0000 (07:51 -0700)
commitb6829c3c917a3557beee70fcdd86990661404ea5
tree4176e6319077dea150f148ff4584ed88de0e1fbe
parentfba3b6d16c206882c3ccb98da38271cf36100629
Use an iterator range for 'using' directives

This patch changes block::get_using to return an iterator range.  This
seemed cleaner to me than the current approach of returning a pointer
to the first using directive; all the callers actually use this to
iterate.
gdb/ada-lang.c
gdb/block.c
gdb/block.h
gdb/cp-namespace.c
gdb/cp-support.c
gdb/d-namespace.c