C++: fix local types and members
It fixes code model when we have local type which contains a member
of other type, e.g.:
struct OtherType { int otherTypeMember; };
void foo()
{
struct LocalType
{
int localTypeMember;
OtherType ot;
};
LocalType lt;
lt.ot.//no code completion
}
Change-Id: I018f492a6c48bfcbba0ef376ef005825e2b13f35
Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
Showing
- src/libs/cplusplus/LookupContext.cpp 9 additions, 0 deletionssrc/libs/cplusplus/LookupContext.cpp
- src/plugins/cpptools/cppcompletion_test.cpp 202 additions, 0 deletionssrc/plugins/cpptools/cppcompletion_test.cpp
- src/plugins/cpptools/cpptoolsplugin.h 7 additions, 0 deletionssrc/plugins/cpptools/cpptoolsplugin.h
Loading
Please register or sign in to comment