aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-02-21 15:00:29 +0000
committerDaniel Jasper <djasper@google.com>2013-02-21 15:00:29 +0000
commit37905f711cb286baae724f1e438ec572ba26fbf3 (patch)
treecdb7e3977cd661460cd2c60ff8ad03d4de8b6808 /clang/lib/CodeGen/CodeGenModule.cpp
parente8ba1c851a8f3f3397422dd49e4554e017f0eb8f (diff)
downloadllvm-37905f711cb286baae724f1e438ec572ba26fbf3.zip
llvm-37905f711cb286baae724f1e438ec572ba26fbf3.tar.gz
llvm-37905f711cb286baae724f1e438ec572ba26fbf3.tar.bz2
Allow breaking between type and name in for loops.
This fixes llvm.org/PR15033. Also: Always break before a parameter, if the previous parameter was split over multiple lines. This was necessary to make the right decisions in for-loops, almost always makes the code more readable and also fixes llvm.org/PR14873. Before: for (llvm::ArrayRef<NamedDecl *>::iterator I = FD->getDeclsInPrototypeScope() .begin(), E = FD->getDeclsInPrototypeScope().end(); I != E; ++I) { } foo(bar(bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb, ccccccccccccccccccccccccccccc), d, bar(e, f)); After: for (llvm::ArrayRef<NamedDecl *>::iterator I = FD->getDeclsInPrototypeScope().begin(), E = FD->getDeclsInPrototypeScope().end(); I != E; ++I) { } foo(bar(bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb, ccccccccccccccccccccccccccccc), d, bar(e, f)); llvm-svn: 175741
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions