This website requires JavaScript.
Explore
Help
Sign In
feedc0de
/
qt-creator
Watch
1
Star
0
Fork
0
You've already forked qt-creator
forked from
qt-creator/qt-creator
Code
Pull Requests
Activity
Files
fd83c50599b52d0fa07901b7709d0ad6f562e0c0
qt-creator
/
tests
/
auto
/
cplusplus
/
translationunit
/
translationunit.pro
4 lines
98 B
Prolog
Raw
Normal View
History
Unescape
Escape
C++: Support for UTF-8 in the lexer This will save us toLatin1() conversations in CppTools (which already holds UTF-8 encoded QByteArrays) and thus loss of information (see QTCREATORBUG-7356). It also gives us support for non-latin1 identifiers. API-wise the following functions are added to Token. In follow-up patches these will become handy in combination with QStrings. utf16chars() - aequivalent of bytes() utf16charsBegin() - aequivalent of bytesBegin() utf16charsEnd() - aequivalent of bytesEnd() Next steps: * Adapt functions from TranslationUnit. They should work with utf16 chars in order to calculate lines and columns correctly also for UTF-8 multi-byte code points. * Adapt the higher level clients: * Cpp{Tools,Editor} should expect UTF-8 encoded Literals. * Cpp{Tools,Editor}: When dealing with identifiers on the QString/QTextDocument layer, code points represendet by two QChars need to be respected, too. * Ensure Macro::offsets() and Document::MacroUse::{begin,end}() report offsets usable in CppEditor/CppTools. Addresses QTCREATORBUG-7356. Change-Id: I0791b5236be8215d24fb8e38a1f7cb0d279454c0 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
2014-02-25 13:44:11 -03:00
include
(
.
.
/
shared
/
shared
.
pri
)
SOURCES
+=
tst_translationunit
.
cpp
C++: Tests: Fix unicode tests with MSVC Change-Id: I5575826558bf60982ecc964e4dd85a3f4e920197 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2014-05-30 12:09:05 -04:00
HEADERS
+=
.
.
/
cplusplus_global
.
h
Copy Permalink