emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] scratch/merge-cedet-tests ebff99d 215/316: Another 'using


From: Edward John Steere
Subject: [Emacs-diffs] scratch/merge-cedet-tests ebff99d 215/316: Another 'using namespace' fix
Date: Fri, 27 Jan 2017 20:03:41 +0000 (UTC)

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

    Another 'using namespace' fix
    
    (semantic-analyze-scoped-types-default): If we cannot find a type in
    the typecache, also look into the the types we already found.  This is
    necessary since in C++, a 'using namespace' can be dependend on a
    previous one.
    
    * testusing.cpp: Add test for the above.
---
 test/manual/cedet/cedet/semantic/tests/testusing.cpp |   13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/test/manual/cedet/cedet/semantic/tests/testusing.cpp 
b/test/manual/cedet/cedet/semantic/tests/testusing.cpp
index 4dd42a3..564591d 100644
--- a/test/manual/cedet/cedet/semantic/tests/testusing.cpp
+++ b/test/manual/cedet/cedet/semantic/tests/testusing.cpp
@@ -193,3 +193,16 @@ void unfoundfunc()
     ; //#17# ( )  Nothing here since this is an undefined class
 
 }
+
+// Using statements can depend on previous ones...
+
+void acc_using()
+{
+  using namespace outer;
+  // This is effectively like 'using namespace outer::inner'
+  using namespace inner;
+
+  StructNested sn;
+  sn.//-18-
+    ; //#18# ( "one" "two" )
+}



reply via email to

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