| 23 | } |
| 24 | |
| 25 | bool IsSubRelative(const std::filesystem::path &path, const std::filesystem::path &base) { |
| 26 | auto relative = std::filesystem::relative(path, base); |
| 27 | auto relativeString = relative.string(); |
| 28 | if (relativeString.empty()) { |
| 29 | return false; |
| 30 | } |
| 31 | if (relativeString == ".") { |
| 32 | return true; |
| 33 | } |
| 34 | return !relativeString.starts_with("."); |
| 35 | } |
| 36 | |
| 37 | void FormatContext::SetOutputFilePath(std::string_view path) { |
| 38 | _outPath = std::string(path); |
no test coverage detected