MCPcopy Create free account
hub / github.com/build-cpp/cmkr / is_root_path

Function is_root_path

src/project_parser.cpp:928–935  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

926}
927
928bool is_root_path(const std::string &path) {
929 const auto toml_path = fs::path(path) / "cmake.toml";
930 if (!fs::exists(toml_path)) {
931 return false;
932 }
933 const auto toml = toml::parse<toml::discard_comments, tsl::ordered_map, std::vector>(toml_path.string());
934 return toml.contains("project");
935}
936
937} // namespace parser
938} // namespace cmkr

Callers 1

generate_cmakeFunction · 0.85

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected