Skip to content

clangd can not update reference index when function append parameter with default value #1104

Open
llvm/llvm-project
#140651
@FAKERINHEART

Description

@FAKERINHEART

Please describe the problem.
For hints on what information is helpful, see: https://clangd.llvm.org/troubleshooting.html

If you can, provide a minimal chunk of code that shows the problem (either inline, or attach it if larger).

image

image

image

image

As shown in the pictures above, clangd cannot recognize that the old references also adapt to the new function, when I append int parameter a with default value 1.

Logs

Please attach the clangd stderr log if you can. (Usually available from the editor)
If possible, run with --log=verbose - note that the logs will include the contents of open files!
If this is a crash, try to put llvm-symbolizer on your PATH per the troubleshooting instructions.

System information

Output of clangd --version:
image

Editor/LSP plugin:
vscode-clangd
Operating system:
mac intel

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions