data: location crash fix

* fixed a crash that occurred when trying to find the correct location of a constructor call.
* refactored that code while being at it ;)
This commit is contained in:
malte_langkabel
2015-12-10 18:59:49 +01:00
parent 01bcf7266b
commit 3da20e3e32
3 changed files with 263 additions and 51 deletions
+2 -2
View File
@@ -851,7 +851,7 @@ public:
);
TS_ASSERT_EQUALS(client->calls.size(), 1);
TS_ASSERT_EQUALS(client->calls[0], "void App::App() -> void Item::Item() <7:2 7:2>");
TS_ASSERT_EQUALS(client->calls[0], "void App::App() -> void Item::Item() <7:2 7:4>");
}
void test_cxx_parser_finds_constructor_call_of_field_in_initialization_list()
@@ -931,7 +931,7 @@ public:
);
TS_ASSERT_EQUALS(client->calls.size(), 1);
TS_ASSERT_EQUALS(client->calls[0], "app -> void App::App() <6:5 6:5>");
TS_ASSERT_EQUALS(client->calls[0], "app -> void App::App() <6:5 6:7>");
}
void test_cxx_parser_finds_global_function_call()