diff options
author | Hans Wennborg <hans@chromium.org> | 2020-03-25 17:20:06 +0100 |
---|---|---|
committer | Hans Wennborg <hans@chromium.org> | 2020-03-27 10:47:19 +0100 |
commit | eb85e90350e93a64279139e7eca9ca40c8fbf5eb (patch) | |
tree | e8f591a5ae92e164f11b76afed3e4df8ff8a6c03 /llvm/lib/Object/ELF.cpp | |
parent | 7d482e9213537d9c5811d9fb68bace8fcb648132 (diff) | |
download | llvm-eb85e90350e93a64279139e7eca9ca40c8fbf5eb.zip llvm-eb85e90350e93a64279139e7eca9ca40c8fbf5eb.tar.gz llvm-eb85e90350e93a64279139e7eca9ca40c8fbf5eb.tar.bz2 |
clang-format: Fix pointer alignment for overloaded operators (PR45107)
This fixes a regression from D69573 which broke the following example:
$ echo 'operator C<T>*();' | bin/clang-format --style=Chromium
operator C<T> *();
(There should be no space before the asterisk.)
It seems the problem is in TokenAnnotator::spaceRequiredBetween(),
which only looked at the token to the left of the * to see if it was a
type or not. That code only handled simple types or identifiers, not
templates or qualified types. This patch addresses that.
Differential revision: https://reviews.llvm.org/D76850
Diffstat (limited to 'llvm/lib/Object/ELF.cpp')
0 files changed, 0 insertions, 0 deletions