summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2013-01-21 16:42:44 +0000
committerManuel Klimek <klimek@google.com>2013-01-21 16:42:44 +0000
commita4fe1c13c0043f6ff5019c5f04b4e8db85178d28 (patch)
tree508db1eacd5426598c180c1f9850a77d49e7dcdd /clang/lib/CodeGen/CodeGenModule.cpp
parentfe732d538fdca72728b809d8c943d1e411d81405 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud