MCPcopy Index your code
hub / github.com/cpplint/cpplint / ProcessExtensionsOption

Function ProcessExtensionsOption

cpplint.py:1077–1087  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

1075
1076
1077def ProcessExtensionsOption(val):
1078 global _valid_extensions
1079 try:
1080 extensions = [ext.strip() for ext in val.split(",")]
1081 _valid_extensions = set(extensions)
1082 except ValueError:
1083 PrintUsage(
1084 "Extensions should be a comma-separated list of values;"
1085 "for example: extensions=hpp,cpp\n"
1086 f'This could not be parsed: "{val}"'
1087 )
1088
1089
1090def GetNonHeaderExtensions():

Callers 2

ProcessConfigOverridesFunction · 0.85
ParseArgumentsFunction · 0.85

Calls 1

PrintUsageFunction · 0.85

Tested by

no test coverage detected