I’ve tried to use Visual Studio’s static analysis for my game project but it also checks the engine files, and when adding C++ Core Guidelines checks it takes a long time (it was over an hour and still didn’t complete).
Is there a way to have the analyzer ignore the engine files?
How I enabled Static Analysis:
-
Added the following to
AppData\Roaming\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml
:<WindowsPlatform> <StaticAnalyzer>VisualCpp</StaticAnalyzer>
-
I’ve rebuilt the
UnrealBuildTool
after addingArguments.Add("/analyze:plugin EspXEngine.dll")
to enable C++ Core Checks inEngine\Source\Programs\UnrealBuildTool\Platform\Windows\VCToolChain.cs
.