mirror of
https://github.com/open-goal/jak-project
synced 2026-06-07 03:58:11 -04:00
clang-format all the things
This commit is contained in:
@@ -60,8 +60,8 @@ class ObjectFileDB {
|
||||
template <typename Func>
|
||||
void for_each_obj(Func f) {
|
||||
assert(obj_files_by_name.size() == obj_file_order.size());
|
||||
for(const auto& name : obj_file_order) {
|
||||
for(auto& obj : obj_files_by_name.at(name)) {
|
||||
for (const auto& name : obj_file_order) {
|
||||
for (auto& obj : obj_files_by_name.at(name)) {
|
||||
f(obj);
|
||||
}
|
||||
}
|
||||
@@ -75,12 +75,12 @@ class ObjectFileDB {
|
||||
template <typename Func>
|
||||
void for_each_function(Func f) {
|
||||
for_each_obj([&](ObjectFileData& data) {
|
||||
// printf("IN %s\n", data.record.to_unique_name().c_str());
|
||||
// printf("IN %s\n", data.record.to_unique_name().c_str());
|
||||
for (int i = 0; i < int(data.linked_data.segments); i++) {
|
||||
// printf("seg %d\n", i);
|
||||
// printf("seg %d\n", i);
|
||||
int fn = 0;
|
||||
for (auto& goal_func : data.linked_data.functions_by_seg.at(i)) {
|
||||
// printf("fn %d\n", fn);
|
||||
// printf("fn %d\n", fn);
|
||||
f(goal_func, i, data);
|
||||
fn++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user