MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / CPrint

Function CPrint

scripts/check_code_format.py:44–50  ·  view source on GitHub ↗
(msg_type, msg_string)

Source from the content-addressed store, hash-verified

42#
43# Color print routine, takes a string matching a txtcolor above and the output string, resets color upon exit
44def CPrint(msg_type, msg_string):
45 txtcolors = {'HELP_MSG': '\033[0;36m',
46 'SUCCESS_MSG': '\033[1;32m',
47 'CONTENT': '\033[1;39m',
48 'ERR_MSG': '\033[1;31m',
49 'NO_COLOR': '\033[0m'}
50 print(txtcolors.get(msg_type, txtcolors['NO_COLOR']) + msg_string + txtcolors['NO_COLOR'])
51#
52#
53# Check clang-formatting of source code diff

Callers 5

VerifyClangFormatSourceFunction · 0.85
VerifyCopyrightsFunction · 0.85
VerifyTypeAssignFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected