[Format/ObjC] Avoid breaking between unary operators and operands
authorBen Hamilton <benhamilton@google.com>
Fri, 19 Jul 2019 16:50:24 +0000 (16:50 +0000)
committerBen Hamilton <benhamilton@google.com>
Fri, 19 Jul 2019 16:50:24 +0000 (16:50 +0000)
commit86383e66266cca1a4e40538e2e6c8c13f978cfaa
treed23045ddac8faa6f0c80fb097b28dc3f620131ca
parent870f49e6903dd00fdaa53eaf07180559fa42f73c
[Format/ObjC] Avoid breaking between unary operators and operands

Summary:
Test Plan:
  New tests added. Ran tests with:
  % ninja FormatTests && ./tools/clang/unittests/Format/FormatTests
  Confirmed tests failed before change and passed after change.

Reviewers: krasimir, djasper, sammccall, klimek

Reviewed By: sammccall

Subscribers: klimek, cfe-commits

Tags: #clang

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

llvm-svn: 366592
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTestObjC.cpp