INNER CODE UNIT · Python
get_dir_files
faasm/faasm · bin/run_clang_tidy.py:67
def get_dir_files(relative_dir):
file_list = [join(argument, f) for f in listdir(argument)]
print(
"Running clang tidy on files in dir {}:\n{}".format(
argument, file_list
)
)
return filter_file_list(file_list)
# Function to actually run clang-tidy
def do_tidy(file_list):
if not file_list:
print("Got no files to tidy")
exit(1)
n_cpus = cpu_count()
file_chunks = np.array_split(file_list, n_cpus)