use clang-tidy config file

This commit is contained in:
Krishna Vedala
2020-07-08 15:21:59 -04:00
parent 930cc920df
commit 1df1f2d55f

View File

@@ -129,10 +129,7 @@ jobs:
print("clang-tidy:")
for cpp_file in cpp_files:
subprocess.run(["clang-tidy",
"--format-style='{ BasedOnStyle: Google, UseTab: Never, IndentWidth: 4, TabWidth: 4, AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false, ColumnLimit: 80, AccessModifierOffset: -3 }'",
"-checks=-*,google-*,portability-*", "--fix",
cpp_file, "--"], check=True, text=True)
subprocess.run(["clang-tidy", "--quiet", "--fix", cpp_file, "--"], check=True, text=True)
# print("g++:")
# compile_exts = tuple(".c .c++ .cc .cpp .cu .cxx".split())