]> git.eshelyaron.com Git - emacs.git/commitdiff
Revert rev. 6995
authorDavid Engster <dengste@eml.cc>
Fri, 2 Aug 2013 19:46:42 +0000 (21:46 +0200)
committerEdward John Steere <edward.steere@gmail.com>
Wed, 25 Jan 2017 18:21:28 +0000 (20:21 +0200)
(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.

test/manual/cedet/cedet/semantic/tests/testdoublens.cpp

index e9fc5bca7d7152b5ecff4605cd5b1d56fb637bbf..f4624724df8c72ac952ef7ebcc479215e74f646e 100644 (file)
@@ -162,3 +162,21 @@ void someFunc(const struct ContainsStruct::TheStruct *foo)
   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")
+}