diff options
author | Michi | 2017-08-09 09:18:27 +0000 |
---|---|---|
committer | Michael Woski | 2017-08-10 20:15:21 +0000 |
commit | e252398ee1b023bb76f4692bb3e4b921a19c4fc3 (patch) | |
tree | 5765230837aca89f06d4a13f1d9b66c4f7e879c2 /core/org.eclipse.cdt.ui.tests | |
parent | b0ce8bc3fb6a160db4f3affcb0cb1745bcf9d76b (diff) | |
download | org.eclipse.cdt-e252398ee1b023bb76f4692bb3e4b921a19c4fc3.tar.gz org.eclipse.cdt-e252398ee1b023bb76f4692bb3e4b921a19c4fc3.tar.xz org.eclipse.cdt-e252398ee1b023bb76f4692bb3e4b921a19c4fc3.zip |
Bug 520783 - wrong AccessContext for heuristically resolved
CPPUnknownMemberClass
Change-Id: I5a24c7df1dc3b4c270c60b93327190c0461c4cd0
Signed-off-by: Michi <woskimi@yahoo.de>
Diffstat (limited to 'core/org.eclipse.cdt.ui.tests')
-rw-r--r-- | core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/contentassist2/CompletionTests.java | 62 |
1 files changed, 17 insertions, 45 deletions
diff --git a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/contentassist2/CompletionTests.java b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/contentassist2/CompletionTests.java index 267fefb98c7..5ccfc967e6b 100644 --- a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/contentassist2/CompletionTests.java +++ b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/contentassist2/CompletionTests.java @@ -590,6 +590,22 @@ public class CompletionTests extends CompletionTestBase { assertCompletionResults(fCursorOffset, expected, ID); } + // template <typename TPA> + // struct A { + // struct AA { + // static int i; + // }; + // }; + // + // template <typename TPB> + // void test() + // { + // A<TPB>::AA::/*cursor*/ + // } + public void testUnknownMemberClassAccessContext_520783() throws Exception { + assertCompletionResults(new String[] { "i" }); + } + // template <typename T> // struct A { // template <typename U> @@ -1126,51 +1142,7 @@ public class CompletionTests extends CompletionTestBase { final String[] expected= { "add(tOther)" }; assertCompletionResults(fCursorOffset, expected, REPLACEMENT); } - - // template <typename TPA> - // struct A { - // struct { - // int i; - // } test; - // }; - // - // template <typename TPB> - // struct B { - // - // A<TPB> const* a; - // - // void - // test() - // { - // a->test./*cursor*/ - // } - // }; - public void testHeuristicTypeResolution1_520470() throws Exception { - assertCompletionResults(new String[] { "i" }); - } - - // template <typename TPA> - // struct A { - // struct { - // int i; - // } test; - // }; - // - // template <typename TPB> - // struct B { - // - // A<TPB> const* a(); - // - // void - // test() - // { - // a()->t/*cursor*/ - // } - // }; - public void testHeuristicTypeResolution2_520470() throws Exception { - assertCompletionResults(new String[] { "test" }); - } - + //namespace ns { // template<class T> // class Base { |