[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/merge-cedet-tests 75c52c3 055/316: (ms_structs, fu
From: |
Edward John Steere |
Subject: |
[Emacs-diffs] scratch/merge-cedet-tests 75c52c3 055/316: (ms_structs, fun): New test example from Marting Stein. |
Date: |
Sat, 28 Jan 2017 09:09:47 +0000 (UTC) |
branch: scratch/merge-cedet-tests
commit 75c52c3f59b7f50a6144f58dfe9be615ab0e08dc
Author: Eric Ludlam <address@hidden>
Commit: Edward John Steere <address@hidden>
(ms_structs, fun): New test example from Marting Stein.
---
test/manual/cedet/cedet/semantic/tests/testnsp.cpp | 44 ++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/test/manual/cedet/cedet/semantic/tests/testnsp.cpp
b/test/manual/cedet/cedet/semantic/tests/testnsp.cpp
index f2ed0e4..2557ed9 100644
--- a/test/manual/cedet/cedet/semantic/tests/testnsp.cpp
+++ b/test/manual/cedet/cedet/semantic/tests/testnsp.cpp
@@ -57,3 +57,47 @@ void AAA::aaa()
d->// -2-
; // #2# ( "bbb" )
}
+
+// #include files inside a namespace
+// David Engster <address@hidden>
+// See revisions 8034-8037 which implement this.
+
+namespace another {
+ #include "testdoublens.hpp"
+}
+
+void foo(void) {
+
+ another::// -3-
+ ; // #3# ( "Name1" "a" "stage3_Foo" )
+
+ another::Name1::Name2::Foo a;
+
+ a.// -4-
+ ; // #4# ( "Mumble" "get" )
+}
+
+// What happens if a type your looking for is scoped withing a type,
+// but you are one level into the completion so the originating scope
+// excludes the type of the variable you are completing through?
+// Thanks Martin Stein for this nice example.
+namespace ms_structs
+{
+ struct aaa
+ {
+ int xx;
+ };
+ struct bbb
+ {
+ struct aaa yy;
+ };
+}
+int fun()
+{
+ using namespace ms_structs;
+ struct bbb zz;
+ int uu = zz.// -5-
+ ; // #5# ( "yy" )
+ int kk = zz.yy.// -6-
+ ; // #6# ( "xx" )
+}
\ No newline at end of file
- [Emacs-diffs] scratch/merge-cedet-tests ce2952b 312/316: Revert rev. 6995, (continued)
- [Emacs-diffs] scratch/merge-cedet-tests ce2952b 312/316: Revert rev. 6995, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests a78c71f 255/316: Fix documentation, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 41c7498 284/316: Better skip message, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 32b1d6c 260/316: First pass of creating a distribution., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 9679584 296/316: Remove compatibility function `cedet-called-interactively-p'., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests f8e3bbc 311/316: Return fully qualified types if necessary., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 0041d52 314/316: Add header comments and provide., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 0141378 247/316: Remove obsolete cvs-auto-updated 'X-RCS' line., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests c672504 249/316: etc/srecode/c.srt: New file, contents from cpp.srt, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests ab1acb9 300/316: Test refactor/move, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 75c52c3 055/316: (ms_structs, fun): New test example from Marting Stein.,
Edward John Steere <=
- [Emacs-diffs] scratch/merge-cedet-tests dbfb320 057/316: Test files contributed by Barry OReilly, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests d8b5630 060/316: Patch from Marcus Harnisch, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests dbed2db 058/316: Run the tests., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests d58e8d8 063/316: Reverse the exist status of Emacs., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests c9de94f 064/316: * cit-test.sh: Add support for running in batch mode., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 66b117d 071/316: Test files contributed by Barry OReilly, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 0c4deea 079/316: Test files contributed by Barry OReilly, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests feb2025 074/316: Don't check contents after initial fil, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 5812c59 073/316: Remove obsolete cvs-auto-updated 'X-RCS' line., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 89e6966 077/316: Remove compatibility function `cedet-called-interactively-p'., Edward John Steere, 2017/01/28