]> granicus.if.org Git - clang/commit
[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)
commitada9d5e815fb4a60eb2a91d649bb3b15b33b6a57
tree35a5801887dfe8daf4f7ed1f4c9a3b423f49af1f
parent89f0031320593ecd5a1ccd2b2bacf83de981b4d8
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@366592 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTestObjC.cpp