aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/SourceMgr.cpp
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2013-01-10 15:58:26 +0000
committerManuel Klimek <klimek@google.com>2013-01-10 15:58:26 +0000
commit0ddd57a17bf8e42cc6a8374d9859e86070716d4e (patch)
tree1282e5baa211091bd24ee418c0d6d8f4524bf79d /llvm/lib/Support/SourceMgr.cpp
parent92465285abb3ae8d3bcf359a558f6789bb9130c5 (diff)
downloadllvm-0ddd57a17bf8e42cc6a8374d9859e86070716d4e.zip
llvm-0ddd57a17bf8e42cc6a8374d9859e86070716d4e.tar.gz
llvm-0ddd57a17bf8e42cc6a8374d9859e86070716d4e.tar.bz2
Fixes layout of right braces.
We now decide whether a newline should go before the closing brace depending on whether a newline was inserted after the opening brace. For example, we now insert a newline before '};' in: static SomeClass WithALoooooooooooooooooooongName = { 100000000, \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\" }; ... while not inserting a newline here: static SomeClass = { a, b, c, d, e, f, g, h, i, j, looooooooooooooooooooooooooooooooooongname, looooooooooooooooooooooooooooooong }; Also fixes the formating of (column limit 25): int x = { avariable, b(alongervariable) }; llvm-svn: 172076
Diffstat (limited to 'llvm/lib/Support/SourceMgr.cpp')
0 files changed, 0 insertions, 0 deletions