use different container per gh review

This commit is contained in:
Felipe Lema 2021-06-16 18:03:24 -04:00
parent e702d33e48
commit de89baedd3

View File

@ -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;