Some update for SemanticToken.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -50,4 +50,9 @@ struct SemanticTokensParams {
|
||||
TextDocumentIdentifier textDocument;
|
||||
};
|
||||
|
||||
struct SemanticTokens {
|
||||
/// The actual tokens.
|
||||
std::vector<uinteger> data;
|
||||
};
|
||||
|
||||
} // namespace clice::protocol
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user