Simplify resolve_subexp by using C++ algorithms
authorTom Tromey <tromey@adacore.com>
Tue, 2 Mar 2021 20:00:45 +0000 (13:00 -0700)
committerTom Tromey <tromey@adacore.com>
Tue, 2 Mar 2021 20:00:45 +0000 (13:00 -0700)
commit886d459fbea73da4b07bae37f4526b766cbd90e8
treea72eacd92ad227823cade0255da0fbc1eda22a9c
parentbdcccc56393c26b86265f94d4fcf55c20c938ab7
Simplify resolve_subexp by using C++ algorithms

This changes resolve_subexp to use any_of and the erase-remove idiom
to simplify the code somewhat.  This simplifies the next patch a bit.

gdb/ChangeLog
2021-03-02  Tom Tromey  <tromey@adacore.com>

* ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
gdb/ChangeLog
gdb/ada-lang.c