Preventing clang from examinging file during static analysis

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

Leave a Reply

Your email address will not be published. Required fields are marked *