Skip to content

Manually through UE4#

  • Pass -StaticAnalyzer=VisualCPP (or PVSStudio) to UBT.exe build
  • Make sure to Do full build of project (clean then build)
  • Also make sure to disable XGE
  • Can also modify buildconfiguration.xml:
<!-- <StaticAnalyzer>PVSStudio</StaticAnalyzer> -->

Devops script# bbr --analyzer=PVSStudio

UBT Command line#

UnrealBuildTool.exe UE4Editor Win64 Development -staticanalyzer=pvsstudio
UnrealBuildTool.exe UE4Editor Win64 Development -staticanalyzer=visualcpp -nodebuginfo

Reference From

Manually setting up PVS Studio for Static Analysis#

  1. Download PVS Studio from

  2. Launch standalone.exe, go to Tools->Options->Registration

  3. Name: PVS-Studio Free


  5. Add the following comments to every .cpp file

// This is an independent project of an individual developer. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java:
  1. (For now, you need to have Incredibuild disabled. )

Go to BBProto.Build.cs and add csharp>BuildConfiguration.bAllowXGE = false;

  1. Open a shell in the PVS Studio folder and run batch>CLMonitor.exe monitor

  2. Do a full build of BBProto project

  3. Go back to the shell, and type batch>CLMonitor.exe analyze -l "sample.plog"

  4. Double clicking sample.plog should launch the analysis results in PVS Studio.

Last update: November 14, 2019