Top "Clang-static-analyzer" questions

Use this tag for the Clang Static Analyzer, an open source source code analysis tool which find bugs in C and Objective-C programs.

How to make the Clang Static Analyzer output its working from command line?

I'm running Clang 3.4 on Ubuntu 12.10 (from http://llvm.org/apt/). I ran the analyzer (clang --analyze) over some code, and …

c++ linux command-line clang clang-static-analyzer
clang-tidy: How to suppress warnings?

I recently started experimenting with the clang-tidy tool of llvm. Now I am trying to suppress false warnings from third …

suppress-warnings clang-static-analyzer clang-tidy
Ignore system headers in clang-tidy

tldr;> How do I hide warnings from system headers in clang-tidy? I have the following minimal example source file, …

c++ clang clang-static-analyzer libtooling clang-tidy
CMake add target for invoking clang analyzer

I'd basically like to achieve the same as http://blog.alexrp.com/2013/09/26/clangs-static-analyzer-and-automake, but with CMake. analyze_srcs = foo.c …

c++ cmake clang clang-static-analyzer
Is it possible to suppress Xcode 4 static analyzer warnings?

The Xcode 4 static analyzer reports in my code some false positives. Is there any way to suppress them?

objective-c xcode4 clang clang-static-analyzer
Clang Error on "Potential null dereference."

I keep getting Clang errors on the following type of code and I can't figure out why they're erroneous or …

cocoa clang-static-analyzer
CLang error (objective C): value stored during initialization is never read

Foo *oFoo = [[[Foo alloc] init] autorelease]; This is how I was taught to program in Objective C, yet the CLang …

objective-c clang-static-analyzer
Clang: what is "Method returns an Objective-C object with a +0 retain count" trying to tell me?

Running a static analysis with clang in both XCode 3.2 and Nikita Zhuk's Analysis Tool I've often come across this pair …

objective-c cocoa clang clang-static-analyzer