forked from OSchip/llvm-project
[clang][NFC] clang-format fix after eb10b065f2
This commit is contained in:
parent
1ae63b4179
commit
517fe058d4
|
@ -3640,12 +3640,12 @@ static void handleTransparentUnionAttr(Sema &S, Decl *D, const ParsedAttr &AL) {
|
|||
S.Context.getTypeAlign(FieldType) > FirstAlign) {
|
||||
// Warn if we drop the attribute.
|
||||
bool isSize = S.Context.getTypeSize(FieldType) != FirstSize;
|
||||
unsigned FieldBits = isSize? S.Context.getTypeSize(FieldType)
|
||||
unsigned FieldBits = isSize ? S.Context.getTypeSize(FieldType)
|
||||
: S.Context.getTypeAlign(FieldType);
|
||||
S.Diag(Field->getLocation(),
|
||||
diag::warn_transparent_union_attribute_field_size_align)
|
||||
<< isSize << *Field << FieldBits;
|
||||
unsigned FirstBits = isSize? FirstSize : FirstAlign;
|
||||
unsigned FirstBits = isSize ? FirstSize : FirstAlign;
|
||||
S.Diag(FirstField->getLocation(),
|
||||
diag::note_transparent_union_first_field_size_align)
|
||||
<< isSize << FirstBits;
|
||||
|
|
Loading…
Reference in New Issue