-
Notifications
You must be signed in to change notification settings - Fork 14.4k
issue-63565: community requested small QoL fix for more configurabili… #108005
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
4e9cbd6
ae6e02e
9e67e06
6e31a07
49ca6dd
e222a84
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -504,10 +504,10 @@ struct FragmentCompiler { | |
auto Fast = isFastTidyCheck(Str); | ||
if (!Fast.has_value()) { | ||
diag(Warning, | ||
llvm::formatv( | ||
"Latency of clang-tidy check '{0}' is not known. " | ||
"It will only run if ClangTidy.FastCheckFilter is Loose or None", | ||
Str) | ||
llvm::formatv("Latency of clang-tidy check '{0}' is not known. " | ||
"It will only run if ClangTidy.FastCheckFilter is " | ||
"Loose or None", | ||
Str) | ||
.str(), | ||
Arg.Range); | ||
} else if (!*Fast) { | ||
|
@@ -622,6 +622,21 @@ struct FragmentCompiler { | |
C.Completion.AllScopes = AllScopes; | ||
}); | ||
} | ||
if (F.ArgumentLists) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We have a |
||
if (auto Val = | ||
compileEnum<Config::ArgumentListsPolicy>("ArgumentLists", | ||
*F.ArgumentLists) | ||
.map("None", Config::ArgumentListsPolicy::None) | ||
.map("OpenDelimiter", | ||
Config::ArgumentListsPolicy::OpenDelimiter) | ||
.map("Delimiters", Config::ArgumentListsPolicy::Delimiters) | ||
.map("FullPlaceholders", | ||
Config::ArgumentListsPolicy::FullPlaceholders) | ||
.value()) | ||
Out.Apply.push_back([Val](const Params &, Config &C) { | ||
C.Completion.ArgumentLists = *Val; | ||
}); | ||
} | ||
} | ||
|
||
void compile(Fragment::HoverBlock &&F) { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -230,6 +230,10 @@ class Parser { | |
if (auto AllScopes = boolValue(N, "AllScopes")) | ||
F.AllScopes = *AllScopes; | ||
}); | ||
Dict.handle("ArgumentLists", [&](Node &N) { | ||
if (auto ArgumentLists = scalarValue(N, "ArgumentLists")) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. since
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (this comment remains to be addressed) |
||
F.ArgumentLists = *ArgumentLists; | ||
}); | ||
Dict.parse(N); | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I'm seeing some diff hunks containing unrelated formatting changes. If would be great to remove this as they pollute the blame
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I use
clang-format
with the.clang-format
of the code base. Even if I don't change anything and just do aclang-format
this change will happen. It seems that it's not correctly formatted. I will fix this and my recommendation would be to useclang-format
on this file - or perhaps the whole code base - post patching in its own commit. this will fix this issue(s) in the future.