diff options
author | Manuel Klimek <klimek@google.com> | 2013-01-10 15:58:26 +0000 |
---|---|---|
committer | Manuel Klimek <klimek@google.com> | 2013-01-10 15:58:26 +0000 |
commit | 0ddd57a17bf8e42cc6a8374d9859e86070716d4e (patch) | |
tree | 1282e5baa211091bd24ee418c0d6d8f4524bf79d /llvm/lib/Support/SourceMgr.cpp | |
parent | 92465285abb3ae8d3bcf359a558f6789bb9130c5 (diff) | |
download | llvm-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