pass multiple files

This commit is contained in:
Krishna Vedala 2020-07-10 21:47:39 -04:00
parent 389d50ea14
commit 9a5a62cf12
No known key found for this signature in database
GPG Key ID: BA19ACF8FC8792F7

View File

@ -122,9 +122,11 @@ jobs:
if not cpp_files:
sys.exit(0)
for cpp_file in cpp_files:
subprocess.run(["clang-tidy-10", "--fix", "-p=build", cpp_file, "--"],
subprocess.run(["clang-tidy-10", "--fix", "-p=build", *cpp_files, "--"],
check=True, text=True, stderr=subprocess.STDOUT)
# for cpp_file in cpp_files:
# subprocess.run(["clang-tidy-10", "--fix", "-p=build", cpp_file, "--"],
# check=True, text=True, stderr=subprocess.STDOUT)
# print("g++:")
# compile_exts = tuple(".c .c++ .cc .cpp .cu .cxx".split())