[all-commits] [llvm/llvm-project] b25282: [clangd] fix wrong CalleeArgInfo in the hover

v1nh1shungry via All-commits all-commits at lists.llvm.org
Fri Feb 10 06:17:35 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b252824e6e6ee0959051841e583860ba7ed1cd67
      https://github.com/llvm/llvm-project/commit/b252824e6e6ee0959051841e583860ba7ed1cd67
  Author: v1nh1shungry <v1nh1shungry at outlook.com>
  Date:   2023-02-10 (Fri, 10 Feb 2023)

  Changed paths:
    M clang-tools-extra/clangd/Hover.cpp
    M clang-tools-extra/clangd/unittests/HoverTests.cpp

  Log Message:
  -----------
  [clangd] fix wrong CalleeArgInfo in the hover

```
void foobar(int);
int main() {
  foobar(1 + 2);
           ^
}
```

Currently the CalleeArgInfo will be "Passed by reference", which should
be "Passed by value".

Fixes https://github.com/clangd/clangd/issues/1467

Differential Revision: https://reviews.llvm.org/D142014




More information about the All-commits mailing list