clang_tools

cpp_linter.clang_tools.assemble_version_exec(tool_name: str, specified_version: str) str | None[source]

Assembles the command to the executable of the given clang tool based on given version information.

Parameters:
tool_name: str

The name of the clang tool to be executed.

specified_version: str

The version number or the installed path to a version of the tool’s executable.

cpp_linter.clang_tools.capture_clang_tools_output(files: list[FileObj], args: Args) ClangVersions[source]

Execute and capture all output from clang-tidy and clang-format. This aggregates results in the OUTPUT.

Parameters:
files: list[FileObj]

A list of files to analyze.

args: Args

A namespace of parsed args from the CLI.