diff options
author | Manuel Klimek <klimek@google.com> | 2013-01-21 16:42:44 +0000 |
---|---|---|
committer | Manuel Klimek <klimek@google.com> | 2013-01-21 16:42:44 +0000 |
commit | a4fe1c13c0043f6ff5019c5f04b4e8db85178d28 (patch) | |
tree | 508db1eacd5426598c180c1f9850a77d49e7dcdd /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | fe732d538fdca72728b809d8c943d1e411d81405 (diff) | |
download | bcm5719-llvm-a4fe1c13c0043f6ff5019c5f04b4e8db85178d28.tar.gz bcm5719-llvm-a4fe1c13c0043f6ff5019c5f04b4e8db85178d28.zip |
Fixes formatting of empty blocks.
We now only put empty blocks into a single line, if all of:
- all tokens of the structural element fit into a single line
- we're not in a control flow statement
Note that we usually don't put record definitions into a single line, as
there's usually at least one more token (the semicolon) after the
closing brace. This doesn't hold when we are in a context where there is
no semicolon, like "enum E {}".
There were some missing tests around joining lines around the corner
cases of the allowed number of columns, so this patch adds some.
llvm-svn: 173055
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions