mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
22 lines
429 B
C++
22 lines
429 B
C++
#pragma once
|
|
|
|
//
|
|
// This file is distributed under the MIT License. See LICENSE.md for details.
|
|
//
|
|
|
|
#include <optional>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
std::string getCurrentExecutableFullPath();
|
|
|
|
class PathList {
|
|
public:
|
|
PathList(const std::vector<std::string> &Paths) : SearchPaths(Paths) {}
|
|
|
|
std::optional<std::string> findFile(const std::string &FileName) const;
|
|
|
|
private:
|
|
std::vector<std::string> SearchPaths;
|
|
};
|