This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/11543] using-directive does not autocomplete


------- Additional Comments From swagiaal at redhat dot com  2010-04-28 15:30 -------
The question is whether symtab.c:completion_list_add_name
looks at current import statements (using namespace A).
To add support for something like that would require duplicating a lot of the
code that currently does namespace lookup in completion_list_add_name.

IMO the right thing to do is to modify the lookup_* functions to optionally
return a list of all matching names so that the code can be reused. The same
thing applies to the lookup procedure performed during overload resolution.
Seems like a lot of work but it is the right thing to do.



-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=11543

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]