]> granicus.if.org Git - clang/commit
[clang-format] [PR42417] clang-format inserts a space after '->' for operator->(...
authorPaul Hoad <mydeveloperday@gmail.com>
Fri, 4 Oct 2019 13:24:15 +0000 (13:24 +0000)
committerPaul Hoad <mydeveloperday@gmail.com>
Fri, 4 Oct 2019 13:24:15 +0000 (13:24 +0000)
commit756a6a581ddae8455a3ba83f4871e30b4aa9656e
treed77457418fbb0ed136c9880ea479decaf3bb924b
parentf1114176105fac6df9020f05838a1feb6c237868
[clang-format] [PR42417] clang-format inserts a space after '->' for operator->() overloading

Summary:
https://bugs.llvm.org/show_bug.cgi?id=42417

This revision removes the extra space between the opertor-> and the parens ()

```
class Bug {
    auto operator-> () -> int*;
    auto operator++(int) -> int;
};
```

Reviewers: klimek, owenpan, byoungyoung, mitchell-stellar

Reviewed By: mitchell-stellar

Subscribers: cfe-commits

Tags: #clang-format, #clang

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373746 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTest.cpp