diff options
| author | Daniel Jasper <djasper@google.com> | 2013-05-15 14:09:55 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2013-05-15 14:09:55 +0000 |
| commit | 5be59ba8c9fb291f83970f0ebddceda70088bb28 (patch) | |
| tree | 9e543f881c4267b04c967ec25df631424ad959fe /lib/CodeGen/CodeGenFunction.cpp | |
| parent | 5d823e3a00a3e21a0823288e6dee26a93758332b (diff) | |
| download | clang-5be59ba8c9fb291f83970f0ebddceda70088bb28.tar.gz clang-5be59ba8c9fb291f83970f0ebddceda70088bb28.tar.bz2 clang-5be59ba8c9fb291f83970f0ebddceda70088bb28.tar.xz | |
Don't put short namespace on a single line.
Before:
namespace abc { class SomeClass; }
namespace def { void someFunction() {} }
After:
namespace abc {
class Def;
}
namespace def {
void someFunction() {}
}
Rationale:
a) Having anything other than forward declaration on the same line
as a namespace looks confusing.
b) Formatting namespace-forward-declaration-combinations different
from other stuff is inconsistent.
c) Wasting vertical space close to such forward declarations really
does not affect readability.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181887 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
