clangbackend: More cursor adjustments

Fixes: QTCREATORBUG-21534
Change-Id: Ia8a6f277b186bd6decdfec26bfca30b36802c1c2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2020-11-20 15:03:10 +01:00
parent d3fafcde0f
commit 0d12c8cba8
4 changed files with 45 additions and 11 deletions

View File

@@ -1776,6 +1776,13 @@ TEST_F(TokenProcessor, IndirectMacro)
ASSERT_THAT(infos[5], IsHighlightingMark(746u, 20u, 10u, HighlightingType::LocalVariable));
}
TEST_F(TokenProcessor, MultiDimArray)
{
const auto infos = translationUnit.tokenInfosInRange(sourceRange(752, 28));
ASSERT_THAT(infos[3], IsHighlightingMark(752u, 13u, 10u, HighlightingType::GlobalVariable));
}
Data *TokenProcessor::d;
void TokenProcessor::SetUpTestCase()