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

Method FinishKeyword

Source/cmArgumentParser.cxx:194–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194void Instance::FinishKeyword()
195{
196 ParserState const& state = this->GetState();
197 if (!state.DoneWithPositional) {
198 return;
199 }
200
201 if (state.KeywordValuesSeen < state.KeywordValuesExpected) {
202 if (this->ParseResults) {
203 this->ParseResults->AddKeywordError(state.Keyword,
204 " missing required value\n");
205 }
206 if (state.Bindings.KeywordMissingValue) {
207 state.Bindings.KeywordMissingValue(*this, state.Keyword);
208 }
209 }
210}
211
212bool ParseResult::MaybeReportError(cmMakefile& mf) const
213{

Callers 2

ConsumeMethod · 0.95
ParseMethod · 0.95

Calls 2

AddKeywordErrorMethod · 0.80
GetStateMethod · 0.45

Tested by

no test coverage detected