void
for_each_level_1_subdir(const std::string& cache_dir,
- const SubdirVisitor& subdir_visitor,
+ const SubdirVisitor& visitor,
const ProgressReceiver& progress_receiver)
{
for (int i = 0; i <= 0xF; i++) {
double progress = 1.0 * i / 16;
progress_receiver(progress);
std::string subdir_path = fmt::format("{}/{:x}", cache_dir, i);
- subdir_visitor(subdir_path, [&](double inner_progress) {
+ visitor(subdir_path, [&](double inner_progress) {
progress_receiver(progress + inner_progress / 16);
});
}
bool
hash_multicommand_output(Hash& hash,
- const std::string& commands,
+ const std::string& command,
const std::string& compiler)
{
- for (const std::string& cmd : Util::split_into_strings(commands, ";")) {
+ for (const std::string& cmd : Util::split_into_strings(command, ";")) {
if (!hash_command_output(hash, cmd, compiler)) {
return false;
}