MCPcopy Create free account
hub / github.com/Kitware/CMake / FindKeywordOwnerLevel

Method FindKeywordOwnerLevel

Source/cmArgumentParser.h:285–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283 }
284
285 std::size_t FindKeywordOwnerLevel(cm::string_view arg) const
286 {
287 for (std::size_t i = Stack.size(); i--;) {
288 if (this->Stack[i].Bindings.Keywords.Find(arg) !=
289 this->Stack[i].Bindings.Keywords.end()) {
290 return (this->Stack.size() - 1) - i;
291 }
292 }
293 return 0;
294 }
295
296private:
297 std::vector<ParserState> Stack;

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
FindMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected