diff options
author | Daniel Jasper <djasper@google.com> | 2013-02-04 07:34:48 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-02-04 07:34:48 +0000 |
commit | 2603ee0dc6003be0fbe43038b34580864d1e0c85 (patch) | |
tree | ebed4e5e8411eea58e2240bf06db70992cedafea /clang/lib/Format/Format.cpp | |
parent | 1f140981b6af0c8cf0455a9999707a837de071ad (diff) | |
download | bcm5719-llvm-2603ee0dc6003be0fbe43038b34580864d1e0c85.tar.gz bcm5719-llvm-2603ee0dc6003be0fbe43038b34580864d1e0c85.zip |
Improve formatting of stream operators.
If there are string literals on either side of a '<<', chances are
high that they represent logically separate concepts. Otherwise,
the author could just have just a single literal (possible split
over multiple lines).
So, we can now nicely format things like:
cout << "somepacket = {\n"
<< " val a = " << ValueA << "\n"
<< " val b = " << ValueB << "\n"
<< "}";
llvm-svn: 174310
Diffstat (limited to 'clang/lib/Format/Format.cpp')
0 files changed, 0 insertions, 0 deletions