[all-commits] [llvm/llvm-project] 936a67: [clang-format] Extra spaces surrounding arrow in t...

MyDeveloperDay via All-commits all-commits at lists.llvm.org
Sat Dec 18 03:45:34 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 936a67f089efd31354cf1f1f3b864b81fb5aad0e
      https://github.com/llvm/llvm-project/commit/936a67f089efd31354cf1f1f3b864b81fb5aad0e
  Author: mydeveloperday <mydeveloperday at gmail.com>
  Date:   2021-12-18 (Sat, 18 Dec 2021)

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

  Log Message:
  -----------
  [clang-format] Extra spaces surrounding arrow in templated member call in variable decl

https://github.com/llvm/llvm-project/issues/43196

Fixes #43196

-> is incorrectly interpreted as a TrailingReturnArrow if we've seen an auto

```
auto p = new A;
auto x = p -> foo<1>();
```

Reviewed By: curdeius

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




More information about the All-commits mailing list