forked from qt-creator/qt-creator
Clang: Integrate highlighting results from backend
Change-Id: I2c3fb69aabfe075bde76d63eafc2ca370f17493c Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
This commit is contained in:
committed by
Nikolai Kosjar
parent
eb2457869d
commit
7ce9ef9db4
@@ -144,6 +144,14 @@ TEST_F(HighlightingInformations, IteratorBeginEnd)
|
||||
ASSERT_THAT(infos.end(), endIterator);
|
||||
}
|
||||
|
||||
TEST_F(HighlightingInformations, ForFullTranslationUnitRange)
|
||||
{
|
||||
const auto infos = translationUnit.highlightingInformations();
|
||||
|
||||
ASSERT_THAT(infos, AllOf(Contains(IsHighlightingInformation(1u, 1u, 4u, HighlightingType::Keyword)),
|
||||
Contains(IsHighlightingInformation(277u, 5u, 15u, HighlightingType::Function))));
|
||||
}
|
||||
|
||||
TEST_F(HighlightingInformations, Size)
|
||||
{
|
||||
const auto range = translationUnit.sourceRange(5, 5, 5, 10);
|
||||
|
||||
Reference in New Issue
Block a user