Skip to main content

runcodeanalysis

Runs code analysis during the build process for Visual Studio projects.

The runcodeanalysis option enforces code analysis during the build process in Visual Studio projects. This may significantly increase build time for projects.

runcodeanalysis("value")

Parameters

value is one of:

  • On
  • Off

Applies To

The config scope.

Availability

Premake 5.0.0 beta 3 or later for Visual Studio 2019 and later.

Examples

Run clang-tidy code analysis during the build process.

clangtidy("On")
runcodeanalysis("On")

See Also