CppTools: Fix nextToSurroundingDefinitions

Now it is checked if the adjacent declaration is also defined and one
can define the destination file.

Change-Id: Ifff59c49fc2ab3e2f36f41df42ae4b7d7ff8dd35
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
Lorenz Haas
2013-06-07 16:44:08 +02:00
committed by Nikolai Kosjar
parent c51195d9bb
commit 8f4c4b41f6
5 changed files with 207 additions and 30 deletions

View File

@@ -82,6 +82,8 @@ private slots:
void test_codegen_definition_first_member();
void test_codegen_definition_last_member();
void test_codegen_definition_middle_member();
void test_codegen_definition_middle_member_surrounded_by_undefined();
void test_codegen_definition_member_specific_file();
void test_completion_forward_declarations_present();
void test_completion_inside_parentheses_c_style_conversion();