MCPcopy
hub / github.com/iaddis/metalnes / insertCpps

Function insertCpps

external/Catch2/scripts/generateSingleHeader.py:68–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66
67
68 def insertCpps():
69 dirs = getDirsToSearch()
70 cppFiles = []
71 for dir in dirs:
72 cppFiles += glob(os.path.join(dir, '*.cpp'))
73 # To minimize random diffs, sort the files before processing them
74 for fname in sorted(cppFiles):
75 dir, name = fname.rsplit(os.path.sep, 1)
76 dir += os.path.sep
77 parseFile(dir, name)
78
79 def parseFile( path, filename ):
80 f = io.open( os.path.join(path, filename), 'r', encoding='utf-8' )

Callers 1

parseFileFunction · 0.85

Calls 2

getDirsToSearchFunction · 0.85
parseFileFunction · 0.85

Tested by

no test coverage detected