Clang: Extract highlighting information

Prepare the move of the semantic highlighting to the clang back end. We
have it under tests too so it should be quite easy to make changes or
corrections.

Change-Id: I5706a8a06fde5a9ba2eba3a8ba62782102ac0bd3
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
Marco Bubke
2015-11-17 13:33:31 +01:00
parent 611d7db4de
commit bcd93b594e
35 changed files with 4292 additions and 19 deletions

View File

@@ -42,6 +42,8 @@
namespace {
using ::testing::StrEq;
using ClangBackEnd::ClangString;
TEST(ClangString, ConvertToUtf8String)
@@ -87,4 +89,11 @@ TEST(ClangString, MoveSelfAssigment)
ASSERT_FALSE(text.isNull());
}
TEST(ClangString, SpellingAsCString)
{
ClangString text(CXString{"text", 0});
ASSERT_THAT(text.cString(), StrEq("text"));
}
}