diff options
author | Daniel Jasper <djasper@google.com> | 2013-01-07 13:08:40 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-01-07 13:08:40 +0000 |
commit | 206df734174752324e22254db488d60e5fcbb45c (patch) | |
tree | 72bcb77455463405ca560737e2cf8ee95b62fb00 /clang/lib/Format/UnwrappedLineParser.cpp | |
parent | a055aab50666829affd76f47b273d66fa6bd30a7 (diff) | |
download | bcm5719-llvm-206df734174752324e22254db488d60e5fcbb45c.tar.gz bcm5719-llvm-206df734174752324e22254db488d60e5fcbb45c.zip |
Prefer not to break after assignments.
This addresses llvm.org/PR14830.
Before:
unsigned Cost =
TTI.getMemoryOpCost(I->getOpcode(), VectorTy, SI->getAlignment(),
SI->getPointerAddressSpace());
CharSourceRange LineRange =
CharSourceRange::getTokenRange(TheLine.Tokens.front().Tok.getLocation(),
TheLine.Tokens.back().Tok.getLocation());
After:
unsigned Cost = TTI.getMemoryOpCost(I->getOpcode(), VectorTy,
SI->getAlignment(),
SI->getPointerAddressSpace());
CharSourceRange LineRange = CharSourceRange::getTokenRange(
TheLine.Tokens.front().Tok.getLocation(),
TheLine.Tokens.back().Tok.getLocation());
This required rudimentary changes to static initializer lists, but we
are not yet formatting them in a reasonable way. That will be done in a
subsequent patch.
llvm-svn: 171731
Diffstat (limited to 'clang/lib/Format/UnwrappedLineParser.cpp')
0 files changed, 0 insertions, 0 deletions