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

Method __iterate_files

tools/donate_cpu_lib.py:736–745  ·  view source on GitHub ↗
(self, path, has_include_cb)

Source from the content-addressed store, hash-verified

734 self.__library_includes_re[library] = re_obj
735
736 def __iterate_files(self, path, has_include_cb):
737 for root, _, files in os.walk(path):
738 for name in files:
739 filename = os.path.join(root, name)
740 try:
741 with open(filename, 'rt', errors='ignore') as f:
742 filedata = f.read()
743 has_include_cb(filedata)
744 except IOError:
745 pass
746
747 def get_libraries(self, folder):
748 print('Detecting library usage...')

Callers 1

get_librariesMethod · 0.95

Calls 2

joinMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected