[cfe-dev] How to filter some bugs from scan-build?
Anna Zaks
ganna at apple.com
Fri Jul 19 09:06:32 PDT 2013
Howard,
Pragmas cannot be used to suppress the static analyzer warnings. Most likely you've silenced a regular compiler warning within Xcode.
Please, refer to http://clang-analyzer.llvm.org/faq.html for more information about how various analyzer warning could be silenced.
Cheers,
Anna.
On Jul 19, 2013, at 2:30 AM, 凌欢 <linghuan713 at 126.com> wrote:
> hi, all:
> My scan-build verison is checker-275. I can add some pragma lines such as the following lines to source code:
> #pragma clang diagnostic ignored "-Wdangling-else"
> #pragma clang diagnostic ignored "-Wparentheses-equality"
> #pragma clang diagnostic ignored "-Wunused-variable"
> to avoid the Xcode Gui Analyze the bugs. It seems that it worked for Xcode Gui Analyse ,for exmale ,to disble the
> Dead assignment bug type scan ,we can add:
> #pragma clang diagnostic ignored "-Wunused-variable"
> to specific source code. The problem is , the setting is not work for scan-build command line tool.
> Can anyone give me tips? Thanks all.
> BRs
> Howard Ling
> *****************************************************
>
> E-mail: linghuan713 at 126.com
>
> *****************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130719/8255abf5/attachment.html>
More information about the cfe-dev
mailing list