Inorder to display the default arguments we must process the
CK_Optional chunks of CodeCompletionString while creating the Signature.
We do not create placeholders for default arguments.
Paths
| Differential D65866
Code completion should not ignore default parameters in functions. ClosedPublic Authored by usaxena95 on Aug 7 2019, 6:32 AM.
Details Summary Inorder to display the default arguments we must process the We do not create placeholders for default arguments.
Diff Detail
Event Timelinesammccall added inline comments.
This revision is now accepted and ready to land.Aug 7 2019, 7:45 AM usaxena95 marked 3 inline comments as done. Comment ActionsAdded tests in CodeCompletionStringsTests.cpp Closed by commit rL368186: Code completion should not ignore default parameters in functions. (authored by sammccall). · Explain WhyAug 7 2019, 9:51 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 213927 clang-tools-extra/clangd/CodeCompletionStrings.cpp
clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp
clang-tools-extra/clangd/unittests/CodeCompletionStringsTests.cpp
|
maybe appendOptionalChunk? if in doubt, better to describe the semantics of the param than its type, since the type appears in the signature