diff options
| author | ruki <[email protected]> | 2025-11-20 00:41:24 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-11-20 00:41:24 +0800 |
| commit | d4f99444640e55c2170c7407ca567af2047dc558 (patch) | |
| tree | 746a3513f4d8d9582461d2665a1a5bfb5fedfac9 /xmake/modules/private | |
| parent | 660450b6adb49c5a8b792a0c844a414d0a1b7379 (diff) | |
improve progress
Diffstat (limited to 'xmake/modules/private')
| -rw-r--r-- | xmake/modules/private/check/checkers/clang/tidy.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/private/check/checkers/clang/tidy.lua b/xmake/modules/private/check/checkers/clang/tidy.lua index fc42a77cc..edd671db3 100644 --- a/xmake/modules/private/check/checkers/clang/tidy.lua +++ b/xmake/modules/private/check/checkers/clang/tidy.lua @@ -85,7 +85,7 @@ end -- check a single sourcefile function _check_sourcefile(clang_tidy, sourcefile, opt) - progress.show(opt.progress_percent, "clang-tidy.analyzing %s", sourcefile) + progress.show(opt.progress, "clang-tidy.analyzing %s", sourcefile) try { function () @@ -161,9 +161,9 @@ function _check_sourcefiles(clang_tidy, sourcefiles, opt) _check_sourcefile(clang_tidy, sourcefile, { tidy_argv = tidy_argv, projectdir = projectdir, - progress_percent = index * 100 / total + progress = job_opt.progress }) - end, {total = #sourcefiles, comax = opt.jobs or os.default_njob()}) + end, {total = #sourcefiles, comax = opt.jobs or os.default_njob(), showtips = false}) analyze_time = os.mclock() - analyze_time progress.show(100, "${color.success}clang-tidy analyzed %d files, spent %.3fs", #sourcefiles, analyze_time / 1000) end |
