8[[nodiscard]] std::filesystem::path
sidecar_path(
const std::filesystem::path& header);
11[[nodiscard]] std::filesystem::path
sidecar_path(
const std::filesystem::path& header, std::string_view suffix);
14[[nodiscard]] std::optional<std::string>
read_text(
const std::filesystem::path& path);
20[[nodiscard]]
bool ensure_stub(
const std::filesystem::path& path, std::string& error);
23[[nodiscard]]
bool write_if_changed(
const std::filesystem::path& path,
const std::string& content, std::string& error);
46[[nodiscard]]
bool insert_include(
const std::filesystem::path& header,
unsigned last_marker,
47 std::string_view suffix,
bool& inserted, std::string& error);
51 const std::filesystem::path& header,
unsigned last_marker, std::string_view suffix);