================
@@ -1029,7 +1031,9 @@ struct CompletionRecorder : public CodeCompleteConsumer {
// CodeCompletionResult doesn't seem to be const-correct. We own it,
anyway.
return const_cast<CodeCompletionResult &>(R).CreateCodeCompletionString(
*CCSema, CCContext, *CCAllocator, CCTUInfo,
- /*IncludeBriefComments=*/false);
+ /*IncludeBriefComments=*/false,
+ /*SuppressFuncParamType=*/Opts.ArgumentLists ==
----------------
HighCommander4 wrote:
There is already a
[union](https://searchfox.org/llvm/rev/e0f5ce18c04a5c55e5eb4e35e5ab1f1980e15c31/clang/include/clang/Sema/CodeCompleteConsumer.h#535-546)
in the implementation of `CodeCompletionString::Chunk`. If we want to go with
modifying the CodeCompletionString API, a comparatively less disruptive
approach could be to extend that union with a new member which would be the
"lightweight type that that tracks the completion and a string_view inside the
completion to note the name section", to use only for chunks where we need it.
https://github.com/llvm/llvm-project/pull/200103
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits