Andrey
Andrey

Reputation: 4356

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

Static code analysis tool in MSVS (for C++) has plenty of false positives, and some of them are in Windows SDK files. Is there a way to configure it in order to improve quality and ignore stable SDK files?

Upvotes: 3

Views: 148

Answers (1)

Andrey
Andrey

Reputation: 4356

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

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

Upvotes: 1

Related Questions