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

Method CheckKeyword

Source/cmFileInstaller.cxx:260–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260bool cmFileInstaller::CheckKeyword(std::string const& arg)
261{
262 if (arg == "TYPE") {
263 if (this->CurrentMatchRule) {
264 this->NotAfterMatch(arg);
265 } else {
266 this->Doing = DoingType;
267 }
268 } else if (arg == "FILES") {
269 if (this->CurrentMatchRule) {
270 this->NotAfterMatch(arg);
271 } else {
272 this->Doing = DoingFiles;
273 }
274 } else if (arg == "RENAME") {
275 if (this->CurrentMatchRule) {
276 this->NotAfterMatch(arg);
277 } else {
278 this->Doing = DoingRename;
279 }
280 } else if (arg == "OPTIONAL") {
281 if (this->CurrentMatchRule) {
282 this->NotAfterMatch(arg);
283 } else {
284 this->Doing = DoingNone;
285 this->Optional = true;
286 }
287 } else if (arg == "MESSAGE_ALWAYS") {
288 if (this->CurrentMatchRule) {
289 this->NotAfterMatch(arg);
290 } else {
291 this->Doing = DoingNone;
292 this->MessageAlways = true;
293 }
294 } else if (arg == "MESSAGE_LAZY") {
295 if (this->CurrentMatchRule) {
296 this->NotAfterMatch(arg);
297 } else {
298 this->Doing = DoingNone;
299 this->MessageLazy = true;
300 }
301 } else if (arg == "MESSAGE_NEVER") {
302 if (this->CurrentMatchRule) {
303 this->NotAfterMatch(arg);
304 } else {
305 this->Doing = DoingNone;
306 this->MessageNever = true;
307 }
308 } else if (arg == "PERMISSIONS") {
309 if (this->CurrentMatchRule) {
310 this->Doing = DoingPermissionsMatch;
311 } else {
312 // file(INSTALL) aliases PERMISSIONS to FILE_PERMISSIONS
313 this->Doing = DoingPermissionsFile;
314 this->UseGivenPermissionsFile = true;
315 }
316 } else if (arg == "DIR_PERMISSIONS") {
317 if (this->CurrentMatchRule) {

Callers

nothing calls this directly

Calls 3

NotAfterMatchMethod · 0.80
strMethod · 0.80
SetErrorMethod · 0.45

Tested by

no test coverage detected