[all-commits] [llvm/llvm-project] 14198c: [clang-format] Fix lambda with ellipsis in return ...

MyDeveloperDay via All-commits all-commits at lists.llvm.org
Thu Apr 30 03:03:21 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 14198ccfb3837a2972d39ac446454ca5f175838c
      https://github.com/llvm/llvm-project/commit/14198ccfb3837a2972d39ac446454ca5f175838c
  Author: mydeveloperday <mydeveloperday at gmail.com>
  Date:   2020-04-30 (Thu, 30 Apr 2020)

  Changed paths:
    M clang/lib/Format/UnwrappedLineParser.cpp
    M clang/unittests/Format/FormatTest.cpp

  Log Message:
  -----------
  [clang-format] Fix lambda with ellipsis in return type

Summary:
BTW my actual code that hit this issue is like

```
[a, b = std::move(b)](auto &&... c) mutable -> std::invoke_result_t<decltype(b), decltype(c)...> { /* omitted */ }
```

where this explicit return type is required for SFINAE.

Reviewed By: krasimir, MyDeveloperDay

Patch By: johnchen902

Subscribers: krasimir, dexonsmith, cfe-commits

Tags: #clang-format, #clang

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




More information about the All-commits mailing list