diff options
author | Daniel Jasper <djasper@google.com> | 2015-04-07 14:36:33 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2015-04-07 14:36:33 +0000 |
commit | 676e516354c38ebb496c41cfa6560336de3f0535 (patch) | |
tree | 37202d5ee1624f41d24e130e2144b2ba085d9c16 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 67239b2f730bef55385098ba9622fb5ef1195ee2 (diff) | |
download | llvm-676e516354c38ebb496c41cfa6560336de3f0535.zip llvm-676e516354c38ebb496c41cfa6560336de3f0535.tar.gz llvm-676e516354c38ebb496c41cfa6560336de3f0535.tar.bz2 |
clang-format: Don't allow labels when expecting declarations.
This fixes formatting unnamed bitfields (llvm.org/PR21999).
Before:
struct MyStruct {
uchar data;
uchar:
8;
uchar:
8;
uchar other;
};
After:
struct MyStruct {
uchar data;
uchar : 8;
uchar : 8;
uchar other;
};
llvm-svn: 234318
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions