When extracting members, get them from single file only
commit140a7b6617e89dfcb31d876364d62b3902af0d3c
authorJiří Techet <techet@gmail.com>
Sat, 9 May 2015 14:46:59 +0000 (9 16:46 +0200)
committerJiří Techet <techet@gmail.com>
Sun, 10 Jan 2016 11:31:46 +0000 (10 12:31 +0100)
treeff90b4e27383438e51ecafd7542e9bacc12333af
parentb6b93036f682bbc73399b3372168849d0b31fc4f
When extracting members, get them from single file only

The previous commit fixed the situation when e.g. anon_struct_0 was in the
current file by checking the current file first.

In the case the struct type definition isn't found in the current file,
at the moment we get all members from all anon_struct_0 which can be a
really long list. This list isn't very helpful to users because all the
members from all the structs are mixed. Moreover, not all possible members
are in the list because there are e.g. just members from anon_struct_0 but
not from anon_struct_1 etc. which from the point of view of this function
is a different type.

Instead, restrict the returned members to just a single file (anonymous
structs have unique name per file so it means there will be just one
from the file). Of course the picked file can be wrong and the returned
members might be from a different struct the user wanted but at least
the list will make more sense to users.
tagmanager/src/tm_workspace.c