mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
Merge pull request #947 from kvedala/clang-tidy
[improvements] Clang tidy
This commit is contained in:
commit
d5d9152420
@ -1,6 +1,6 @@
|
||||
---
|
||||
Checks: '-*,google-*,clang-analyzer-*,cppcoreguidelines-*,-cppcoreguidelines-avoid-magic-numbers,-cppcoreguidelines-pro-bounds-*,openmp-*,performance-*,portability-*,modernize-*,-modernize-use-trailing-*'
|
||||
WarningsAsErrors: ''
|
||||
Checks: '-*,google-*,clang-analyzer-*,-clang-analyzer-security.insecureAPI.*,cppcoreguidelines-*,-cppcoreguidelines-avoid-magic-numbers,-cppcoreguidelines-pro-bounds-*,openmp-*,performance-*,portability-*,modernize-*,-modernize-use-trailing-*'
|
||||
WarningsAsErrors: '*,-google-readability-*,-google-explicit-constructor,-modernize-*,modernize-avoid-c-arrays,-google-explicit-constructor,-performance-move-const-arg,-performance-noexcept-move-constructor,-cppcoreguidelines-init-variables,-cppcoreguidelines-pro-*'
|
||||
HeaderFilterRegex: ''
|
||||
AnalyzeTemporaryDtors: false
|
||||
FormatStyle: '{ BasedOnStyle: Google, UseTab: Never, IndentWidth: 4, TabWidth: 4, AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: true, ColumnLimit: 80, AccessModifierOffset: -3, AlignConsecutiveMacros: true }'
|
||||
|
6
.github/workflows/awesome_workflow.yml
vendored
6
.github/workflows/awesome_workflow.yml
vendored
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user