emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] scratch/merge-cedet-tests 29a5165 216/316: C/C++: Parse 'u


From: Edward John Steere
Subject: [Emacs-diffs] scratch/merge-cedet-tests 29a5165 216/316: C/C++: Parse 'using' statements in the correct order.
Date: Fri, 27 Jan 2017 20:03:41 +0000 (UTC)

branch: scratch/merge-cedet-tests
commit 29a51657a7cb49a4063b40c4f1adbcc81f871e3d
Author: David Engster <address@hidden>
Commit: Edward John Steere <address@hidden>

    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.
---
 test/manual/cedet/cedet/semantic/tests/testusing.cpp |   12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/test/manual/cedet/cedet/semantic/tests/testusing.cpp 
b/test/manual/cedet/cedet/semantic/tests/testusing.cpp
index 564591d..4fa2687 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" )
+}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]