forked from qt-creator/qt-creator
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:
@@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user