Swift: rename method

This commit is contained in:
Alex Denisov
2022-06-30 08:48:36 +02:00
parent 522d48aa33
commit 35da75f685
2 changed files with 3 additions and 2 deletions

View File

@@ -226,7 +226,8 @@ std::unordered_map<std::string, std::string> rewriteOutputsInPlace(
return remapping; return remapping;
} }
void ensureNewPathsExist(const std::unordered_map<std::string, std::string>& remapping) { void ensureDirectoriesForNewPathsExist(
const std::unordered_map<std::string, std::string>& remapping) {
for (auto& [_, newPath] : remapping) { for (auto& [_, newPath] : remapping) {
llvm::SmallString<PATH_MAX> filepath(newPath); llvm::SmallString<PATH_MAX> filepath(newPath);
llvm::StringRef parent = llvm::sys::path::parent_path(filepath); llvm::StringRef parent = llvm::sys::path::parent_path(filepath);

View File

@@ -71,7 +71,7 @@ int main(int argc, char** argv) {
auto remapping = auto remapping =
codeql::rewriteOutputsInPlace(configuration, configuration.patchedFrontendOptions); codeql::rewriteOutputsInPlace(configuration, configuration.patchedFrontendOptions);
codeql::ensureNewPathsExist(remapping); codeql::ensureDirectoriesForNewPathsExist(remapping);
codeql::storeRemappingForVFS(configuration, remapping); codeql::storeRemappingForVFS(configuration, remapping);
std::vector<const char*> args; std::vector<const char*> args;