Get scope members only from corresponding tag arrays
commitb6b93036f682bbc73399b3372168849d0b31fc4f
authorJiří Techet <techet@gmail.com>
Sat, 9 May 2015 14:10:06 +0000 (9 16:10 +0200)
committerJiří Techet <techet@gmail.com>
Sun, 10 Jan 2016 11:31:02 +0000 (10 12:31 +0100)
treead143f561df6f2fab4ad87b6c873bc3c74ee25f4
parent2328f84e37328a8d2e8a5fa58dcf8a836885fa41
Get scope members only from corresponding tag arrays

At the moment it can happen that even though a member is found in the
currently edited file, the search at the end of the function finds
the type inside another file. This typically happens for anonymous
structs so e.g. for anon_struct_0{...} from the current file we get
members from anon_struct_0{...} from all open documents plus gloabl tags.

Search in an increasing "circle" - start with current file only (trying
all possible types of the variable), continue with workspace array and
finally, if not found, search in the global tags.
src/editor.c
tagmanager/src/tm_workspace.c
tagmanager/src/tm_workspace.h