diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2015-09-21 22:44:03 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2015-09-23 17:30:52 +0000 |
commit | e5255a1f5cac284c4f0d4a85203878c84da86e85 (patch) | |
tree | bc56206e724deb20b63cf033492fe2d7824d02f2 | |
parent | 5b12c8d63a30e281274cdc267efabead2c736bd8 (diff) | |
download | qt-creator-e5255a1f5cac284c4f0d4a85203878c84da86e85.tar.gz |
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>
-rw-r--r-- | src/plugins/cpptools/cppcompletion_test.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cppcompletion_test.cpp b/src/plugins/cpptools/cppcompletion_test.cpp index a655685c02..7a6dce2a3a 100644 --- a/src/plugins/cpptools/cppcompletion_test.cpp +++ b/src/plugins/cpptools/cppcompletion_test.cpp @@ -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" |