Skip to content

Commit 9954370

Browse files
committed
Fix formatting
1 parent f2a6f10 commit 9954370

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

clang/include/clang/AST/Decl.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3129,7 +3129,6 @@ class FieldDecl : public DeclaratorDecl, public Mergeable<FieldDecl> {
31293129
void setCachedFieldIndex() const;
31303130

31313131
public:
3132-
31333132
/// Determines whether this field is mutable (C++ only).
31343133
bool isMutable() const { return Mutable; }
31353134

clang/lib/AST/RecordLayoutBuilder.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ class EmptySubobjectMap {
138138
return Offset <= MaxEmptyClassOffset;
139139
}
140140

141-
CharUnits
142-
getFieldOffset(const ASTRecordLayout &Layout, const FieldDecl *Field) const {
141+
CharUnits getFieldOffset(const ASTRecordLayout &Layout,
142+
const FieldDecl *Field) const {
143143
uint64_t FieldOffset = Layout.getFieldOffset(Field->getFieldIndex());
144144
assert(FieldOffset % CharWidth == 0 &&
145145
"Field offset not at char boundary!");
@@ -458,9 +458,8 @@ EmptySubobjectMap::CanPlaceFieldSubobjectAtOffset(const FieldDecl *FD,
458458
return true;
459459
}
460460

461-
bool
462-
EmptySubobjectMap::CanPlaceFieldAtOffset(const FieldDecl *FD,
463-
CharUnits Offset) {
461+
bool EmptySubobjectMap::CanPlaceFieldAtOffset(const FieldDecl *FD,
462+
CharUnits Offset) {
464463
if (!CanPlaceFieldSubobjectAtOffset(FD, Offset))
465464
return false;
466465

@@ -3661,7 +3660,8 @@ static void DumpRecordLayout(raw_ostream &OS, const RecordDecl *RD,
36613660

36623661
// Dump fields.
36633662
for (const FieldDecl *Field : RD->fields()) {
3664-
uint64_t LocalFieldOffsetInBits = Layout.getFieldOffset(Field->getFieldIndex());
3663+
uint64_t LocalFieldOffsetInBits =
3664+
Layout.getFieldOffset(Field->getFieldIndex());
36653665
CharUnits FieldOffset =
36663666
Offset + C.toCharUnitsFromBits(LocalFieldOffsetInBits);
36673667

0 commit comments

Comments
 (0)