Forrest logo
back to the vswhere tool

vswhere:tldr:036c2

vswhere: Find the directory of Clang bundled with Visual Studio bundled (clang-cl, clang-tidy, etc).
$ vswhere -products * -latest -prerelease -find **\Llvm\bin\*
try on your machine

The command "vswhere -products * -latest -prerelease -find *\Llvm\bin\" is used to locate the installation directory of the LLVM binaries associated with the latest pre-release version of Visual Studio.

Here's a breakdown of the different parts of the command:

  • vswhere: This is the command-line tool used to query information about installed Visual Studio instances.
  • -products *: This flag specifies that you want to search for any products (i.e., Visual Studio editions) installed on the machine.
  • -latest: This flag instructs vswhere to return information about the latest installed Visual Studio instance.
  • -prerelease: This flag tells vswhere to consider pre-release versions of Visual Studio when searching for the latest installation.
  • -find **\Llvm\bin\*: This flag is used to specify the path or file pattern to search for within the Visual Studio installation directory. In this case, it searches for any file within the Llvm\bin subdirectory. The "**" is a wildcard that matches any subdirectories.

So, when you run this command, it will search for an installed Visual Studio instance, specifically the latest pre-release version, and then locate the LLVM binaries within the Llvm\bin subdirectory of that Visual Studio installation. The command will return the path to the LLVM binaries if found.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the vswhere tool