I have setup buildbot to compile my Qt/C++ application with the /analyze flag.
However the analysis is also delving into the qt headers which I don\'t care about:
<
You can disable all code analysis warnings for a particular block of code using #pragma warning
in your code. MSDN provides the following example:
#include
#pragma warning( push )
#pragma warning ( disable : ALL_CODE_ANALYSIS_WARNINGS )
#include
#pragma warning( pop )
(See "How to: Enable and Disable Code Analysis for Specific C/C++ Warnings" for more information.)
To the best of my knowledge, there is no way to disable warnings from particular header files using only command line options.