From ede9f831df602ebed31981f4f3696fdb23ca7513 Mon Sep 17 00:00:00 2001 From: David Engster Date: Thu, 25 Oct 2012 20:38:27 +0200 Subject: [PATCH] Simplify alias referencing and add tests. * 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. --- .../manual/cedet/cedet/semantic/tests/testusing.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/test/manual/cedet/cedet/semantic/tests/testusing.cpp b/test/manual/cedet/cedet/semantic/tests/testusing.cpp index 3ab10aca18e..4dd42a3b5b7 100644 --- a/test/manual/cedet/cedet/semantic/tests/testusing.cpp +++ b/test/manual/cedet/cedet/semantic/tests/testusing.cpp @@ -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 } -- 2.39.2