[all-commits] [llvm/llvm-project] 7f0dcf: [clangd] Show lambda signature for lambda autocomp...

Kirill Bobyrev via All-commits all-commits at lists.llvm.org
Fri Nov 22 03:53:32 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7f0dcf665dd22be296805bc7a1c71a36243c4e09
      https://github.com/llvm/llvm-project/commit/7f0dcf665dd22be296805bc7a1c71a36243c4e09
  Author: Kirill Bobyrev <kbobyrev at google.com>
  Date:   2019-11-22 (Fri, 22 Nov 2019)

  Changed paths:
    M clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp
    M clang/lib/Sema/SemaCodeComplete.cpp
    M clang/test/CodeCompletion/function-templates.cpp
    M clang/test/CodeCompletion/lambdas.cpp

  Log Message:
  -----------
  [clangd] Show lambda signature for lambda autocompletions

The original bug report can be found
[here](https://github.com/clangd/clangd/issues/85)

Given the following code:

```c++
void function() {
  auto Lambda = [](int a, double &b) {return 1.f;};
  La^
}
```

Triggering the completion at `^` would show `(lambda)` before this patch
and would show signature `(int a, double &b) const`, build a snippet etc
with this patch.

Reviewers: sammccall

Reviewed by: sammccall

Differential revision: https://reviews.llvm.org/D70445




More information about the All-commits mailing list