Skip to content

Commit

Permalink
fix whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
wbenny committed May 20, 2018
1 parent 5dbece8 commit e52da50
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 19 deletions.
11 changes: 5 additions & 6 deletions Source/PDBHeaderReconstructor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ PDBHeaderReconstructor::OnEnumTypeBegin(

Write(" %s", CorrectedName.c_str());
Write("\n");

WriteIndent();
Write("{\n");

m_Depth += 1;
}

Expand All @@ -138,7 +138,7 @@ PDBHeaderReconstructor::OnEnumTypeEnd(
)
{
m_Depth -= 1;

WriteIndent();
Write("}");

Expand All @@ -161,7 +161,7 @@ PDBHeaderReconstructor::OnEnumField(
{
WriteIndent();
Write("%s = ", EnumField->Name);

WriteVariant(&EnumField->Value);
Write(",\n");
}
Expand Down Expand Up @@ -211,7 +211,7 @@ PDBHeaderReconstructor::OnUdtBegin(
WriteConstAndVolatile(Symbol);

Write("%s", PDB::GetUdtKindString(Symbol->u.Udt.Kind));

if (PDB::IsUnnamedSymbol(Symbol) && m_Depth != 0)
{
Write(" //");
Expand Down Expand Up @@ -735,4 +735,3 @@ PDBHeaderReconstructor::ShouldExpand(

return Expand && Symbol->Size > 0;
}

1 change: 0 additions & 1 deletion Source/PDBHeaderReconstructor.h
Original file line number Diff line number Diff line change
Expand Up @@ -279,4 +279,3 @@ class PDBHeaderReconstructor
//
std::set<std::string> m_VisitedSymbols;
};

3 changes: 1 addition & 2 deletions Source/PDBSymbolSorter.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class PDBSymbolSorter
//
// Problem is solved by taking into account
// and printing only the first definition of the symbol.
//
//
// Another solution could be appending a suffix (_1, _2, ...)
// to the symbol names, but then it wouldn't reflect the real names.
// So let's just assume all definitions are same
Expand Down Expand Up @@ -152,4 +152,3 @@ class PDBSymbolSorter
std::map<std::string, const SYMBOL*> m_VisitedUdts;
std::vector<const SYMBOL*> m_SortedSymbols;
};

2 changes: 1 addition & 1 deletion Source/PDBSymbolVisitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class PDBSymbolVisitor
struct UdtFieldContext
{
UdtFieldContext(
const SYMBOL_UDT_FIELD* UdtField,
const SYMBOL_UDT_FIELD* UdtField,
BOOL RespectBitFields = TRUE
)
{
Expand Down
8 changes: 4 additions & 4 deletions Source/PDBSymbolVisitor.inl
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ PDBSymbolVisitor<MEMBER_DEFINITION_TYPE>::VisitUdt(
m_AnonymousUdtStack.swap(AnonymousUDTStackBackup);
m_AnonymousUnionStack.swap(AnonymousUnionStackBackup);
m_AnonymousStructStack.swap(AnonymousStructStackBackup);

{
m_MemberContextStack.push(MemberDefinitionFactory());

Expand Down Expand Up @@ -276,7 +276,7 @@ PDBSymbolVisitor<MEMBER_DEFINITION_TYPE>::VisitUdtField(

m_MemberContextStack.push(MemberDefinitionFactory());
m_MemberContextStack.top()->SetMemberName(UdtField->Name);

if (!IsBitFieldMember || IsFirstBitFieldMember)
{
//
Expand Down Expand Up @@ -562,7 +562,7 @@ PDBSymbolVisitor<MEMBER_DEFINITION_TYPE>::CheckForAnonymousStruct(

return;
}

if (!m_AnonymousUdtStack.empty() &&
m_AnonymousUdtStack.top()->Kind != UdtUnion)
{
Expand Down Expand Up @@ -732,7 +732,6 @@ PDBSymbolVisitor<MEMBER_DEFINITION_TYPE>::CheckForEndOfAnonymousUdt(
// Because the previous member could be non-trivial member (ie. union),
// we will use the variable m_SizeOfPreviousUdtField.
//

LastAnonymousUdt->Size += m_SizeOfPreviousUdtField;

//
Expand All @@ -752,6 +751,7 @@ PDBSymbolVisitor<MEMBER_DEFINITION_TYPE>::CheckForEndOfAnonymousUdt(
UdtFieldCtx.IsLast() ||
UdtFieldCtx.NextUdtField->Offset <= UdtField->Offset;


//
// Special condition for closing anonymous structs
// which are placed inside of the anonymous unions.
Expand Down
3 changes: 1 addition & 2 deletions Source/PDBSymbolVisitorBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class PDBSymbolVisitorBase
const SYMBOL* Symbol
)
{

}

virtual
Expand Down Expand Up @@ -256,4 +256,3 @@ class PDBSymbolVisitorBase
VisitUdtField(UdtField);
}
};

1 change: 0 additions & 1 deletion Source/UdtFieldDefinition.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,3 @@ class UdtFieldDefinition

Settings* m_Settings;
};

3 changes: 1 addition & 2 deletions Source/UdtFieldDefinitionBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class UdtFieldDefinitionBase
const SYMBOL* Symbol
)
{

}

virtual
Expand Down Expand Up @@ -120,4 +120,3 @@ class UdtFieldDefinitionBase
return nullptr;
}
};

0 comments on commit e52da50

Please sign in to comment.