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

Method is_condition_name

src/project_parser.cpp:919–926  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

917}
918
919bool Project::is_condition_name(const std::string &name) {
920 for (auto ch : name) {
921 if (!std::isalnum(ch) && ch != '-' && ch != '_') {
922 return false;
923 }
924 }
925 return true;
926}
927
928bool is_root_path(const std::string &path) {
929 const auto toml_path = fs::path(path) / "cmake.toml";

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected