Summary: This adds a command line argument '-analyze' to clang-check which runs the clang static analyzer on the source files. Reviewers: klimek CC: cfe-commits, revane Differential Revision: http://llvm-reviews.chandlerc.com/D926 llvm-svn: 183399
5 lines
134 B
C++
5 lines
134 B
C++
// RUN: clang-check -analyze "%s" -- -c 2>&1 | FileCheck %s
|
|
|
|
// CHECK: Dereference of null pointer
|
|
int a(int *x) { if(x){} *x = 47; }
|