[clang-format] Prevent extraneous space insertion in bitshift operators
authorLuis Penagos <luis@penagos.co>
Tue, 4 May 2021 10:00:00 +0000 (12:00 +0200)
committerKrasimir Georgiev <krasimir@google.com>
Tue, 4 May 2021 10:28:49 +0000 (12:28 +0200)
commit8fa56f7ededcbe28cbbb810b5d261b72ab0d8035
tree06b693087c672b512e913689f757c8e76b07f078
parentfb92cf92080d34f0bb0b2b0120086ee520f624b8
[clang-format] Prevent extraneous space insertion in bitshift operators

This serves to augment the improvements made in https://reviews.llvm.org/D86581. It prevents clang-format from interpreting bitshift operators as template arguments in certain circumstances. This is an attempt at fixing https://bugs.llvm.org/show_bug.cgi?id=49868

Reviewed By: MyDeveloperDay, krasimir

Differential Revision: https://reviews.llvm.org/D100778
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp