diff options
author | Nikolai Kosjar <nikolai.kosjar@digia.com> | 2014-05-08 09:48:27 -0400 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@digia.com> | 2014-05-23 14:33:34 +0200 |
commit | bb7da966b801a2884cd7cf47f640bf7ac7d775df (patch) | |
tree | a4a74a15edb1603e7a20a306bd0246665c45e88b /src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp | |
parent | dd61ed3345a70ef46fb38a17de36ac2bb1627081 (diff) | |
download | qt-creator-bb7da966b801a2884cd7cf47f640bf7ac7d775df.tar.gz |
Cpp{Tools,Editor}: Respect multi-QChar code points when handling identifiers
* Consolidate code dealing with C++ identifiers into cpptoolsreuse.h
* Handle code points that are represented with two QChars
Change-Id: I4fb4435aa539f65d88598cac0b50629f33f32440
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp')
-rw-r--r-- | src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp b/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp index cd0eec7206..1b20361925 100644 --- a/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp +++ b/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp @@ -919,6 +919,11 @@ void CppEditorPlugin::test_FollowSymbolUnderCursor_data() "\n" "void h() { typedef TreeConstIterator<MyBase> const_iterator; }\n" ); + + QTest::newRow("unicodeIdentifier") << _( + "class Foo { void $\u00FC\u4E8C\U00010302(); };\n" + "void Foo::@\u00FC\u4E8C\U00010302() {}\n" + ); } void CppEditorPlugin::test_FollowSymbolUnderCursor() |