From: David Engster Date: Wed, 18 Sep 2013 19:44:03 +0000 (+0200) Subject: C/C++: Parse 'using' statements in the correct order. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=29a51657a7cb49a4063b40c4f1adbcc81f871e3d;p=emacs.git C/C++: Parse 'using' statements in the correct order. (c++-mode:semantic-ctxt-scoped-types): In the case for using statements outside of function scope, append them in the correct order instead of using 'cons'. This is important since using statements may depend on previous ones. * tests/cedet/semantic/test/manual/cedet/testusing.cpp: Add test for the above. --- diff --git a/test/manual/cedet/cedet/semantic/tests/testusing.cpp b/test/manual/cedet/cedet/semantic/tests/testusing.cpp index 564591d6db9..4fa26872ab5 100644 --- a/test/manual/cedet/cedet/semantic/tests/testusing.cpp +++ b/test/manual/cedet/cedet/semantic/tests/testusing.cpp @@ -206,3 +206,15 @@ void acc_using() sn.//-18- ; //#18# ( "one" "two" ) } + +// Check the same outside of function scope + +using namespace outer; +using namespace inner; + +void acc_using2() +{ + StructNested sn; + sn.//-19- + ; //#19# ( "one" "two" ) +}