forked from qt-creator/qt-creator
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:
committed by
Orgad Shaneh
parent
5b12c8d63a
commit
e5255a1f5c
@@ -3398,6 +3398,16 @@ void CppToolsPlugin::test_completion_member_access_operator_data()
|
||||
<< false
|
||||
<< 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") << _(
|
||||
"struct S { int m; };\n"
|
||||
"typedef S SType;\n"
|
||||
|
Reference in New Issue
Block a user