mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-25 17:11:59 +00:00
Add initialization option index.name.suppressUnwrittenScope (default: false)
This commit is contained in:
parent
dbf7d8eb41
commit
e576df4f6f
@ -261,6 +261,11 @@ struct Config {
|
|||||||
std::vector<std::string> multiVersionBlacklist;
|
std::vector<std::string> multiVersionBlacklist;
|
||||||
std::vector<std::string> multiVersionWhitelist;
|
std::vector<std::string> multiVersionWhitelist;
|
||||||
|
|
||||||
|
struct Name {
|
||||||
|
// Suppress inline and unnamed namespaces in identifier names.
|
||||||
|
bool suppressUnwrittenScope = false;
|
||||||
|
} name;
|
||||||
|
|
||||||
// Allow indexing on textDocument/didChange.
|
// Allow indexing on textDocument/didChange.
|
||||||
// May be too slow for big projects, so it is off by default.
|
// May be too slow for big projects, so it is off by default.
|
||||||
bool onChange = false;
|
bool onChange = false;
|
||||||
@ -326,9 +331,10 @@ REFLECT_STRUCT(Config::Completion, caseSensitivity, detailedLabel,
|
|||||||
REFLECT_STRUCT(Config::Diagnostics, blacklist, onChange, onOpen, onSave,
|
REFLECT_STRUCT(Config::Diagnostics, blacklist, onChange, onOpen, onSave,
|
||||||
spellChecking, whitelist)
|
spellChecking, whitelist)
|
||||||
REFLECT_STRUCT(Config::Highlight, largeFileSize, lsRanges, blacklist, whitelist)
|
REFLECT_STRUCT(Config::Highlight, largeFileSize, lsRanges, blacklist, whitelist)
|
||||||
|
REFLECT_STRUCT(Config::Index::Name, suppressUnwrittenScope);
|
||||||
REFLECT_STRUCT(Config::Index, blacklist, comments, initialBlacklist,
|
REFLECT_STRUCT(Config::Index, blacklist, comments, initialBlacklist,
|
||||||
initialWhitelist, maxInitializerLines, multiVersion,
|
initialWhitelist, maxInitializerLines, multiVersion,
|
||||||
multiVersionBlacklist, multiVersionWhitelist, onChange,
|
multiVersionBlacklist, multiVersionWhitelist, name, onChange,
|
||||||
parametersInDeclarations, threads, trackDependency, whitelist);
|
parametersInDeclarations, threads, trackDependency, whitelist);
|
||||||
REFLECT_STRUCT(Config::Request, timeout);
|
REFLECT_STRUCT(Config::Request, timeout);
|
||||||
REFLECT_STRUCT(Config::Session, maxNum);
|
REFLECT_STRUCT(Config::Session, maxNum);
|
||||||
|
@ -476,6 +476,7 @@ public:
|
|||||||
PP.PolishForDeclaration = true;
|
PP.PolishForDeclaration = true;
|
||||||
PP.ConstantsAsWritten = true;
|
PP.ConstantsAsWritten = true;
|
||||||
PP.SuppressTagKeyword = true;
|
PP.SuppressTagKeyword = true;
|
||||||
|
PP.SuppressUnwrittenScope = g_config->index.name.suppressUnwrittenScope;
|
||||||
PP.SuppressInitializers = true;
|
PP.SuppressInitializers = true;
|
||||||
PP.FullyQualifiedName = false;
|
PP.FullyQualifiedName = false;
|
||||||
return PP;
|
return PP;
|
||||||
|
Loading…
Reference in New Issue
Block a user