C++: Fix Macrouse::utf16charsBegin()

This caused displaced highlighting of macro uses after #if constructs.

MacroUse::utf16charBegin() was based on the last "continuation token",
which was wrong.

Change-Id: I89983d82fcf804ba853c04a59a7533c489785d05
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
Nikolai Kosjar
2014-06-02 16:06:26 -04:00
parent c7f0c4a743
commit ff1203de9e
3 changed files with 25 additions and 1 deletions

View File

@@ -128,6 +128,7 @@ private slots:
void test_cpppreprocessor_includes_resolvedUnresolved();
void test_cpppreprocessor_includes_cyclic();
void test_cpppreprocessor_includes_allDiagnostics();
void test_cpppreprocessor_macroUses();
void test_functionutils_virtualFunctions();
void test_functionutils_virtualFunctions_data();