From 6812c973c9fa9b4ad642ab81856c05f87bd6fcc4 Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Thu, 27 Jan 2022 22:43:28 -0500 Subject: Format All Files --- platform.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'platform.cpp') diff --git a/platform.cpp b/platform.cpp index 83e937f4..68e812dc 100644 --- a/platform.cpp +++ b/platform.cpp @@ -41,7 +41,8 @@ Platform::Platform(Architecture* arch, const string& name, const string& typeFil const char** includeDirList = new const char*[includeDirs.size()]; for (size_t i = 0; i < includeDirs.size(); i++) includeDirList[i] = includeDirs[i].c_str(); - m_object = BNCreatePlatformWithTypes(arch->GetObject(), name.c_str(), typeFile.c_str(), includeDirList, includeDirs.size()); + m_object = BNCreatePlatformWithTypes( + arch->GetObject(), name.c_str(), typeFile.c_str(), includeDirList, includeDirs.size()); delete[] includeDirList; } @@ -403,8 +404,8 @@ string Platform::GenerateAutoPlatformTypeId(const QualifiedName& name) } -Ref Platform::GenerateAutoPlatformTypeReference(BNNamedTypeReferenceClass cls, - const QualifiedName& name) +Ref Platform::GenerateAutoPlatformTypeReference( + BNNamedTypeReferenceClass cls, const QualifiedName& name) { string id = GenerateAutoPlatformTypeId(name); return new NamedTypeReference(cls, id, name); @@ -420,10 +421,9 @@ string Platform::GetAutoPlatformTypeIdSource() } -bool Platform::ParseTypesFromSource(const string& source, const string& fileName, - map>& types, map>& variables, - map>& functions, string& errors, const vector& includeDirs, - const string& autoTypeSource) +bool Platform::ParseTypesFromSource(const string& source, const string& fileName, map>& types, + map>& variables, map>& functions, string& errors, + const vector& includeDirs, const string& autoTypeSource) { BNTypeParserResult result; char* errorStr; @@ -436,8 +436,8 @@ bool Platform::ParseTypesFromSource(const string& source, const string& fileName variables.clear(); functions.clear(); - bool ok = BNParseTypesFromSource(m_object, source.c_str(), fileName.c_str(), &result, - &errorStr, includeDirList, includeDirs.size(), autoTypeSource.c_str()); + bool ok = BNParseTypesFromSource(m_object, source.c_str(), fileName.c_str(), &result, &errorStr, includeDirList, + includeDirs.size(), autoTypeSource.c_str()); errors = errorStr; BNFreeString(errorStr); delete[] includeDirList; @@ -465,8 +465,8 @@ bool Platform::ParseTypesFromSource(const string& source, const string& fileName bool Platform::ParseTypesFromSourceFile(const string& fileName, map>& types, - map>& variables, map>& functions, - string& errors, const vector& includeDirs, const string& autoTypeSource) + map>& variables, map>& functions, string& errors, + const vector& includeDirs, const string& autoTypeSource) { BNTypeParserResult result; char* errorStr; @@ -479,8 +479,8 @@ bool Platform::ParseTypesFromSourceFile(const string& fileName, map