aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ELF.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@chromium.org>2020-03-25 17:20:06 +0100
committerHans Wennborg <hans@chromium.org>2020-03-27 10:47:19 +0100
commiteb85e90350e93a64279139e7eca9ca40c8fbf5eb (patch)
treee8f591a5ae92e164f11b76afed3e4df8ff8a6c03 /llvm/lib/Object/ELF.cpp
parent7d482e9213537d9c5811d9fb68bace8fcb648132 (diff)
downloadllvm-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