Function get_clang_tool_exe

Source
pub fn get_clang_tool_exe(name: &str, version: &str) -> Result<PathBuf>
Expand description

Fetch the path to a clang tool by name (ie "clang-tidy" or "clang-format") and version.

The specified version can be either

  • a full or partial semantic version specification
  • a path to a directory containing the executable binary named

If the executable is not found using the specified version, then the tool is sought only by it’s name.

The only reason this function would return an error is if the specified tool is not installed or present on the system (nor in the $PATH environment variable).