Preventing clang from examinging file during static analysis

0

Posted by Jaime | Posted in Coding | Posted on 03-10-2013

Tags: , ,

Kick ass compiler!

Ok, so if you want to avoid a file from being analyzed during a static analysis, you can use the following example
#ifndef __clang_analyzer__
// code clang should not analyze
#endif

http://clang-analyzer.llvm.org/faq.html