[cfe-dev] Idea for better invoking static analysis via command line

Devin Coughlin via cfe-dev cfe-dev at lists.llvm.org
Tue Feb 2 13:58:37 PST 2016


> On Feb 2, 2016, at 8:49 AM, Craig, Ben via cfe-dev <cfe-dev at lists.llvm.org> wrote:
> 
> The judgment of "how much slower is too much slower" is pretty subjective, and depends on the project.  Increasing a project's build from 30 seconds to 5 minutes is probably too much for that project.  Increasing a project's build from 45 minutes to 55 minutes is probably fine though.

The static analyzer has a “shallow” mode designed to be fast enough to be included as part of normal builds. This can be enabled by passing '-Xclang -analyzer-config -Xclang mode=shallow’ to clang —analyze. Apple exposes this as a setting in Xcode and people do use it.

Devin




More information about the cfe-dev mailing list