Is there a way to configure the details of MSVS static code analysis?

The static code analysis tool in MSVS (for C ++) has many false positives, and some of them are in the Windows SDK files. Is there a way to tweak it to improve quality and ignore stable SDK files?

+3
source share
1 answer

Finally, I found what I was looking for - here is the answer directly from MSDN http://msdn.microsoft.com/en-us/library/zyhb0b82.aspx (specification VS2010):

#include <codeanalysis\warnings.h>
#pragma warning( push )
#pragma warning ( disable : ALL_CODE_ANALYSIS_WARNINGS )
#include <third-party include files here>
#pragma warning( pop )
+1
source

Source: https://habr.com/ru/post/1709169/


All Articles