Some update for SemanticToken.

This commit is contained in:
ykiko
2024-09-11 22:40:05 +08:00
parent bdafccbce6
commit 081e6d1d53
7 changed files with 52 additions and 4 deletions

View File

@@ -1,3 +1,12 @@
#pragma once
namespace clice::feature {}
#include <Protocol/SemanticTokens.h>
namespace clice {
struct ParsedAST;
}
namespace clice::feature {
protocol::SemanticTokens semanticTokens(const ParsedAST& AST, llvm::StringRef filename);
} // namespace clice::feature

View File

@@ -50,4 +50,9 @@ struct SemanticTokensParams {
TextDocumentIdentifier textDocument;
};
struct SemanticTokens {
/// The actual tokens.
std::vector<uinteger> data;
};
} // namespace clice::protocol

View File

@@ -13,6 +13,8 @@ struct Option {
std::string binary;
/// workplace dictionary.
std::string workplace;
/// clang version.
std::string clang_version = "20";
};
std::string resource_dictionary;