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

Method check

src/project_parser.cpp:198–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196 }
197
198 void check(const tsl::ordered_map<std::string, std::string> &conditions, bool check_root) {
199 if (check_root) {
200 for (const auto &itr : m_root.as_table()) {
201 if (!m_visisted.contains(itr.first)) {
202 throw_key_error("Unknown key '" + itr.first + "'", itr.first, itr.second);
203 }
204 }
205 }
206 for (const auto &checker : m_checkers) {
207 checker.check(conditions);
208 }
209 }
210};
211
212Project::Project(const Project *parent, const std::string &path, bool build) : parent(parent) {

Callers

nothing calls this directly

Calls 3

throw_key_errorFunction · 0.85
containsMethod · 0.45
checkMethod · 0.45

Tested by

no test coverage detected