Commit e768a426 authored by Yajun He's avatar Yajun He
Browse files

formatting

parent 6aa88220
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -85,7 +85,8 @@ Module::createOutputFile(const std::string& pathname, const std::string& extensi
#ifdef __APPLE__ // Fix compiling error caused by Xcode iterator legacy
            auto path_it_v = std::vector<std::string>(path.begin(), path.end());
            auto file_it_v = std::vector<std::string>(file.begin(), file.end());
            const auto is_outside = std::search(path_it_v.begin(), path_it_v.end(), file_it_v.begin(), file_it_v.end()) == path_it_v.end();
            const auto is_outside =
                std::search(path_it_v.begin(), path_it_v.end(), file_it_v.begin(), file_it_v.end()) == path_it_v.end();
#else
            const auto is_outside = std::search(path.begin(), path.end(), file.begin(), file.end()) == path.end();
#endif
@@ -94,6 +95,7 @@ Module::createOutputFile(const std::string& pathname, const std::string& extensi
                             << " - this is outside the module output folder";
            }
        }
	
        // Add the file itself - this fully replaces the "file" path in case "path" is absolute:
        file /= (extension.empty() ? path : path.replace_extension(extension));