Fixed column shift when formatting line containing bit shift operators
authorMalcolm Parsons <malcolm.parsons@gmail.com>
Thu, 3 Nov 2016 16:57:30 +0000 (16:57 +0000)
committerMalcolm Parsons <malcolm.parsons@gmail.com>
Thu, 3 Nov 2016 16:57:30 +0000 (16:57 +0000)
commit6af3f14efb0ad169eb5239ca1a9b7027925aadd2
tree31b0c3b08d56cafde7f58614fcc563587c0531b9
parent6dcf4c6859f8c4dd060a3b3c1bc3c34c214b0d36
Fixed column shift when formatting line containing bit shift operators

Summary:
During clang-format source lexing >> and << operators are split and
treated as two less/greater operators but column position of following
tokens was not adjusted accordingly.

Fixes PR26887

Patch by PaweÅ‚ Å»ukowski.

Reviewers: djasper

Subscribers: malcolm.parsons, mprobst, klimek, cfe-commits

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

llvm-svn: 285934
clang/lib/Format/FormatTokenLexer.cpp
clang/unittests/Format/FormatTest.cpp