mirror of
https://github.com/MaskRay/ccls.git
synced 2025-03-18 23:11:31 +00:00
use different container per gh review
This commit is contained in:
parent
e702d33e48
commit
de89baedd3
@ -25,7 +25,7 @@
|
||||
namespace ccls {
|
||||
using namespace llvm;
|
||||
|
||||
std::vector<const char *> SEMANTIC_TOKENS = {
|
||||
const char * SEMANTIC_TOKENS[] = {
|
||||
"unknown",
|
||||
|
||||
"file",
|
||||
@ -60,7 +60,7 @@ std::vector<const char *> SEMANTIC_TOKENS = {
|
||||
"macro"
|
||||
};
|
||||
|
||||
std::vector<const char *> SEMANTIC_MODIFIERS = {
|
||||
const char * SEMANTIC_MODIFIERS[] = {
|
||||
"declaration", //1
|
||||
"definition", //2
|
||||
"static" //4
|
||||
@ -132,8 +132,8 @@ struct ServerCap {
|
||||
Config::ServerCap::Workspace workspace;
|
||||
struct SemanticTokenProvider {
|
||||
struct SemanticTokensLegend {
|
||||
std::vector<const char *> tokenTypes = SEMANTIC_TOKENS;
|
||||
std::vector<const char *> tokenModifiers = SEMANTIC_MODIFIERS;
|
||||
std::vector<const char *> tokenTypes{std::begin(SEMANTIC_TOKENS), std::end(SEMANTIC_TOKENS)};
|
||||
std::vector<const char *> tokenModifiers{std::begin(SEMANTIC_MODIFIERS), std::end(SEMANTIC_MODIFIERS)};
|
||||
} legend;
|
||||
bool range = true;
|
||||
bool full = true;
|
||||
|
Loading…
Reference in New Issue
Block a user