data: complex typename parsing

Added DataType class that can be constructed with a clang::qualType.
DataType keeps an internal QualifierList and ModifierStack.
This commit is contained in:
malte_langkabel
2014-07-09 11:00:35 +02:00
parent f6e6c93f71
commit 78704b6407
20 changed files with 410 additions and 28 deletions
+2 -2
View File
@@ -123,7 +123,7 @@ public:
TS_ASSERT_EQUALS(client->globalVariables.size(), 2);
TS_ASSERT_EQUALS(client->globalVariables[0], "int x <1:1 1:5>");
TS_ASSERT_EQUALS(client->globalVariables[1], "A * b <3:1 3:4>");
TS_ASSERT_EQUALS(client->globalVariables[1], "A b <3:1 3:4>"); // Todo: what about the pointer?
}
void test_cxx_parser_finds_variable_definitions_in_namespace_scope()
@@ -139,7 +139,7 @@ public:
TS_ASSERT_EQUALS(client->globalVariables.size(), 2);
TS_ASSERT_EQUALS(client->globalVariables[0], "int n::x <2:2 2:6>");
TS_ASSERT_EQUALS(client->globalVariables[1], "n::A * n::b <4:2 4:5>");
TS_ASSERT_EQUALS(client->globalVariables[1], "n::A n::b <4:2 4:5>"); // Todo: what about the pointer?
}
void test_cxx_parser_finds_field_in_nested_class()