CppTools: Add a test for ObjC not replacing dot with arrow

Task-number: QTCREATORBUG-14583
Change-Id: Icffa9039215a841e200f20b83cda37d782b94e9a
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2015-09-21 22:44:03 +03:00
committed by Orgad Shaneh
parent 5b12c8d63a
commit e5255a1f5c

View File

@@ -3398,6 +3398,16 @@ void CppToolsPlugin::test_completion_member_access_operator_data()
<< false << false
<< true; << true;
QTest::newRow("objc_not_replacing") << _(
"typedef struct objc_object Bar;"
"class Foo {\n"
" Bar *bar;\n"
" void func() { @ }"
"};\n"
) << _("bar.") << (QStringList())
<< true
<< false;
QTest::newRow("typedef_of_type_and_decl_of_type_no_replace_access_operator") << _( QTest::newRow("typedef_of_type_and_decl_of_type_no_replace_access_operator") << _(
"struct S { int m; };\n" "struct S { int m; };\n"
"typedef S SType;\n" "typedef S SType;\n"