mirror of
https://github.com/github/codeql.git
synced 2025-12-21 19:26:31 +01:00
Swift: rename method
This commit is contained in:
@@ -226,7 +226,8 @@ std::unordered_map<std::string, std::string> rewriteOutputsInPlace(
|
||||
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) {
|
||||
llvm::SmallString<PATH_MAX> filepath(newPath);
|
||||
llvm::StringRef parent = llvm::sys::path::parent_path(filepath);
|
||||
|
||||
@@ -71,7 +71,7 @@ int main(int argc, char** argv) {
|
||||
|
||||
auto remapping =
|
||||
codeql::rewriteOutputsInPlace(configuration, configuration.patchedFrontendOptions);
|
||||
codeql::ensureNewPathsExist(remapping);
|
||||
codeql::ensureDirectoriesForNewPathsExist(remapping);
|
||||
codeql::storeRemappingForVFS(configuration, remapping);
|
||||
|
||||
std::vector<const char*> args;
|
||||
|
||||
Reference in New Issue
Block a user