(semantic-analyze-find-tag-sequence-default): Always add scope to the
local miniscope for each type. Otherwise, structure tags are not
analyzed correctly. Also, always search the extended miniscope even
when not dealing with types.
* tests/cedet/semantic/test/manual/cedet/testdoublens.cpp: Add test
case for the
above change.
foo->// -9-
// #9# ("memberOne" "memberTwo")
}
+
+// Class with structure tag
+class ContainsNamedStruct
+{
+ struct _fooStruct
+ {
+ int memberOne;
+ int memberTwo;
+ } member;
+};
+
+void someOtherFunc(void)
+{
+ ContainsNamedStruct *someClass;
+ // This has to find ContainsNamedStruct::_fooStruct
+ someClass->member.// -10-
+ // #10# ("memberOne" "memberTwo")
+}