MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / accept_filename

Function accept_filename

tools/daca2-download.py:114–122  ·  view source on GitHub ↗
(filename:str)

Source from the content-addressed store, hash-verified

112
113
114def accept_filename(filename:str):
115 if '.' not in filename:
116 return False
117 ext = filename[filename.rfind('.'):]
118 if ext == '.proto' and ('--protobuf' in sys.argv):
119 print('accept_filename:' + filename)
120 return True
121 return ext in ('.C', '.c', '.H', '.h', '.cc',
122 '.cpp', '.cxx', '.c++', '.hpp', '.tpp', '.t++')
123
124
125def removeLargeFiles(path):

Callers 1

removeLargeFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected