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

Function __check_for_flag

Source/cmConvertMSBuildXMLToJSON.py:341–351  ·  view source on GitHub ↗

Checks whether the value has a switch value. If not then returns None as it should not be added.

(value)

Source from the content-addressed store, hash-verified

339
340
341def __check_for_flag(value):
342 """Checks whether the value has a switch value.
343
344 If not then returns None as it should not be added.
345 """
346 if value['switch']:
347 return value
348 else:
349 logging.warning('Skipping %s which has no command line switch',
350 value['name'])
351 return None
352
353
354def __with_argument(node, value):

Callers 3

__convert_boolFunction · 0.85
__convert_string_listFunction · 0.85
__convert_stringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…