From 1f53ecd898cd515db76cb65d6d1a42103b9d9f52 Mon Sep 17 00:00:00 2001 From: Nikolai Kosjar Date: Wed, 10 Sep 2014 16:36:20 +0200 Subject: Revert "C++: add support for resolving typedefs for template arguments" This reverts commit c228b36ccf92f3a75d7687159d99da496cf5e241. There are multiple issues with the reverted patch: * Infinite loop due to indirect recursion e.g. when opening projectmodels.cpp * Crash when executing CppTools tests on Windows (no infinite loop) Change-Id: I38f02132ca57d3d32085db6146d0df7d620d7618 Reviewed-by: Erik Verbruggen --- src/plugins/cpptools/cppcompletion_test.cpp | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'src/plugins/cpptools/cppcompletion_test.cpp') diff --git a/src/plugins/cpptools/cppcompletion_test.cpp b/src/plugins/cpptools/cppcompletion_test.cpp index 0f12e36b07..679e141b75 100644 --- a/src/plugins/cpptools/cppcompletion_test.cpp +++ b/src/plugins/cpptools/cppcompletion_test.cpp @@ -2328,34 +2328,6 @@ void CppToolsPlugin::test_completion_data() << QLatin1String("foo") << QLatin1String("Foo")); - QTest::newRow("resolving_template_argument1") << _( - "template \n" - "struct Base { T t; };\n" - "struct Foo { int foo; };\n" - "void fun() {\n" - " typedef Foo TypedefedFoo;\n" - " Base baseFoo;\n" - " @\n" - "}\n" - ) << _("baseFoo.t.") << (QStringList() - << QLatin1String("foo") - << QLatin1String("Foo")); - - QTest::newRow("resolving_template_argument2") << _( - "namespace NS {\n" - "template \n" - "struct Base { T t; };\n" - "}\n" - "struct Foo { int foo; };\n" - "void fun() {\n" - " typedef Foo TypedefedFoo;\n" - " NS::Base baseFoo;\n" - " @\n" - "}\n" - ) << _("baseFoo.t.") << (QStringList() - << QLatin1String("foo") - << QLatin1String("Foo")); - // this is not a valid code(is not compile) but it caused a crash QTest::newRow("template_specialization_and_initialization_with_pointer2") << _( "template \n" -- cgit v1.2.1