From 0032bf7452608fef3288ca204bb546d66500a7ff Mon Sep 17 00:00:00 2001 From: Tyler Wilding Date: Sat, 25 Apr 2026 22:56:43 -0400 Subject: [PATCH] lint: format --- decompiler/ObjectFile/LinkedObjectFile.cpp | 5 +++-- decompiler/ObjectFile/LinkedObjectFile.h | 2 +- decompiler/ObjectFile/ObjectFileDB.h | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/decompiler/ObjectFile/LinkedObjectFile.cpp b/decompiler/ObjectFile/LinkedObjectFile.cpp index 22150faeff..f06b505a70 100644 --- a/decompiler/ObjectFile/LinkedObjectFile.cpp +++ b/decompiler/ObjectFile/LinkedObjectFile.cpp @@ -713,12 +713,13 @@ std::string LinkedObjectFile::print_asm_function_disassembly(const std::string& // Currently, just hashes the contents of every function, this makes it easy to // compare between games to see if something is identical -void LinkedObjectFile::dump_asm_function_metadata(std::unordered_map &map) { +void LinkedObjectFile::dump_asm_function_metadata( + std::unordered_map& map) { ASSERT(segments <= 3); for (int seg = segments; seg-- > 0;) { // functions for (auto& func : functions_by_seg.at(seg)) { - const auto& function_rep = print_function_disassembly(func, seg, false, ""); + const auto& function_rep = print_function_disassembly(func, seg, false, ""); const auto func_hash = XXH64(function_rep.data(), function_rep.size(), 0); map.emplace(func.name(), fmt::format("{}", func_hash)); } diff --git a/decompiler/ObjectFile/LinkedObjectFile.h b/decompiler/ObjectFile/LinkedObjectFile.h index 892e11e51c..e721fec7dd 100644 --- a/decompiler/ObjectFile/LinkedObjectFile.h +++ b/decompiler/ObjectFile/LinkedObjectFile.h @@ -67,7 +67,7 @@ class LinkedObjectFile { bool write_hex, const std::string& extra_name); std::string print_asm_function_disassembly(const std::string& my_name); - void dump_asm_function_metadata(std::unordered_map &map); + void dump_asm_function_metadata(std::unordered_map& map); u32 read_data_word(const DecompilerLabel& label); const DecompilerLabel& get_label_by_name(const std::string& name) const; diff --git a/decompiler/ObjectFile/ObjectFileDB.h b/decompiler/ObjectFile/ObjectFileDB.h index a4e537ab7d..b9441f0220 100644 --- a/decompiler/ObjectFile/ObjectFileDB.h +++ b/decompiler/ObjectFile/ObjectFileDB.h @@ -196,7 +196,8 @@ class ObjectFileDB { void write_disassembly(const fs::path& output_dir, bool disassemble_data, bool disassemble_code, - bool print_hex, bool dump_function_metadata); + bool print_hex, + bool dump_function_metadata); void process_object_file_data( ObjectFileData& data,