Skip to content

[clang-tidy] Run run-clang-tidy and clang-tidy-diff scripts in parallel implicitly #148624

@vbvictor

Description

@vbvictor

When the user does not specify -j flag in run-clang-tidy or clang-tidy-diff it would be better to run everything in parallel by default.
From my experience, other linters try to run in parallel by default, for example cargo clippy, golangci-lint, revive.

I think we should add implicit call to multiprocessing.cpu_count() in run-clang-tidy and clang-tidy-diff and use that number if user didn't specify -j explicitly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions