]> git.eshelyaron.com Git - emacs.git/commitdiff
Simplify alias referencing and add tests.
authorDavid Engster <dengste@eml.cc>
Thu, 25 Oct 2012 18:38:27 +0000 (20:38 +0200)
committerEdward John Steere <edward.steere@gmail.com>
Wed, 25 Jan 2017 17:28:21 +0000 (19:28 +0200)
* lisp/cedet/semantic/analyze.el (semantic-analyze-dereference-alias):
  Only dereference first tag, since at least for C++ this is enough.
  (semantic-analyze-current-context-default): Adapt comment.

* tests/cedet/semantic/test/manual/cedet/testusing.cpp: Add tests for
  the above.

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

index 3ab10aca18e5db144dc5d651f9f9576a1c5fdcca..4dd42a3b5b791c9bee7a28e6c750b94daad9a87c 100644 (file)
@@ -173,6 +173,15 @@ void func10()
     ; //#14# ( "four" "three" )
 }
 
+// Completion on namespace aliases
+void func11()
+{
+   alias_for_somestuff:://-15-
+      ; //#15# ( "OneClass" "aStruct")
+   alias_for_outerinner:://-16-
+      ; //#16# ( "AnotherStruct" "StructNested" )
+}
+
 // make sure unfound using statements don't crash stuff.
 using something::cantbe::Found;
 
@@ -180,7 +189,7 @@ void unfoundfunc()
 {
   NotFound notfound; // Variable can't be found.
 
-  notfound.//-15-
-    ; //#15# ( )  Nothing here since this is an undefined class
+  notfound.//-17-
+    ; //#17# ( )  Nothing here since this is an undefined class
 
 }