LSP: Use char16_t literals for keys into json objects

Allows use of QStringView based QJson* functions.

Change-Id: I6f39306652bea3abecdcf9e1d4ae494a6b9101c7
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
hjk
2022-08-03 13:00:54 +02:00
parent c68f901aa8
commit 0a1edae9de
10 changed files with 261 additions and 260 deletions

View File

@@ -40,8 +40,8 @@ using namespace Utils;
namespace ClangCodeModel::Internal {
static constexpr char roleKey[] = "role";
static constexpr char arcanaKey[] = "arcana";
static constexpr char16_t roleKey[] = u"role";
static constexpr char16_t arcanaKey[] = u"arcana";
QString ClangdAstNode::role() const { return typedValue<QString>(roleKey); }
QString ClangdAstNode::kind() const { return typedValue<QString>(kindKey); }