Files
codeql/swift/extractor/remapping/SwiftOpenInterception.h
Paolo Tranquilli 521e6235b5 Swift: use std::filesystem and picoSHA2
This replaces usages of `llvm::fs` and string manipulation with
`std::filesystem`, also replacing `std::string` with
`std::filesystem::path` where it made sense.

Moreover MD5 hashing used in macOS file remapping was replaced by
SHA256 hashing using a small header-only SHA256 C++ library with an
MIT license, https://github.com/okdshin/PicoSHA2.

File contents hashing was relocated to the newly created `file` library
for later planned reuse.
2022-10-26 13:23:44 +02:00

16 lines
338 B
C++

#pragma once
#include <string>
#include <unordered_map>
#include <filesystem>
#include "swift/extractor/infra/file/PathHash.h"
namespace codeql {
void initRemapping(const std::filesystem::path& dir);
void finalizeRemapping(
const std::unordered_map<std::filesystem::path, std::filesystem::path>& mapping);
} // namespace codeql