Using VisualCpp static analyser

Hi! Is there any way I can configure the VisualCpp static analyser to ignore generated files and to enable the C++ Core Guidelines checkers?

I’ve just tried setting up a static analyser for my project by adding “-StaticAnalyzer=VisualCpp” in Project Properties → NMake → Build Command Line, but every time I run the analysis I repeatedly get this error as it tries to parse the .gen.cpp files:

fatal error C1001: Internal compiler error

Also, the warnings that do get generated aren’t nearly as many or as helpful as I’d expect. Is it possible to enable C++ Core Checks or configure in any way the range of warnings I’d get when performing the static analysis?