diff options
author | Przemyslaw Gorszkowski <[email protected]> | 2013-06-18 23:05:57 +0200 |
---|---|---|
committer | Nikolai Kosjar <[email protected]> | 2013-08-05 10:50:38 +0200 |
commit | bfbf93e64f91630d7fad0bad1c4d38898ed5086b (patch) | |
tree | 6b5353d4e2bd383d839e5abf3af7587fa474472a /src/plugins/cpptools/cpptoolsplugin.h | |
parent | 62af8171754f8ec892a609ba7434928793026731 (diff) |
C++: fix auto completion for template parameters
Fix auto completion for the case when template parameter should be
found somewhere of scope of template instantiation declaration.
Example:
struct A
{
void foo();
struct B
{
int b;
};
};
template<typename T>
struct Template
{
T* get() { return 0; }
T t;
};
void A::foo()
{
Template<B> templ;
templ.get()->//no autocompletion
templ.t.//no autocompletion
}
Task-number: QTCREATORBUG-8852
Task-number: QTCREATORBUG-9169
Change-Id: I56b40776e66740f995ae6fc5d69e3c50139a3af2
Reviewed-by: Nikolai Kosjar <[email protected]>
Diffstat (limited to 'src/plugins/cpptools/cpptoolsplugin.h')
-rw-r--r-- | src/plugins/cpptools/cpptoolsplugin.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cpptoolsplugin.h b/src/plugins/cpptools/cpptoolsplugin.h index 09028beb6ba..7b6ae5aad05 100644 --- a/src/plugins/cpptools/cpptoolsplugin.h +++ b/src/plugins/cpptools/cpptoolsplugin.h @@ -156,6 +156,12 @@ private slots: void test_completion_enum_inside_block_inside_function_QTCREATORBUG5456(); void test_completion_enum_inside_function_QTCREATORBUG5456(); + void test_completion_template_parameter_defined_inside_scope_of_declaration_QTCREATORBUG9169_1(); + void test_completion_template_parameter_defined_inside_scope_of_declaration_QTCREATORBUG9169_2(); + void test_completion_template_parameter_defined_inside_scope_of_declaration_QTCREATORBUG8852_1(); + void test_completion_template_parameter_defined_inside_scope_of_declaration_QTCREATORBUG8852_2(); + void test_completion_template_parameter_defined_inside_scope_of_declaration_QTCREATORBUG8852_3(); + //lambda void test_completion_lambdaCalls_1(); void test_completion_lambdaCalls_2(); |