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