diff options
| author | Ted Kremenek <kremenek@apple.com> | 2009-11-13 01:15:47 +0000 | 
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2009-11-13 01:15:47 +0000 | 
| commit | aedb7434c8cdbca163d08af90ad09ecb02a19fcc (patch) | |
| tree | cb851561149bf8002c14ef14c8a238d1f72d4e35 /clang/lib/Analysis | |
| parent | 1e886ebe8ceb1d642456ce0e6ee4c81a0f689ce8 (diff) | |
| download | bcm5719-llvm-aedb7434c8cdbca163d08af90ad09ecb02a19fcc.tar.gz bcm5719-llvm-aedb7434c8cdbca163d08af90ad09ecb02a19fcc.zip | |
Add clang-cc option "-analyzer-experimental-checks" to enable experimental path-sensitive checks.  The idea is to separate "barely working" or "skunkworks" checks from ones that should always run.  Later we need more fine-grain checker control.
llvm-svn: 87053
Diffstat (limited to 'clang/lib/Analysis')
| -rw-r--r-- | clang/lib/Analysis/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | clang/lib/Analysis/GRExprEngineExperimentalChecks.cpp | 23 | 
2 files changed, 24 insertions, 0 deletions
| diff --git a/clang/lib/Analysis/CMakeLists.txt b/clang/lib/Analysis/CMakeLists.txt index 3638b831a7f..8e8c1e7b25e 100644 --- a/clang/lib/Analysis/CMakeLists.txt +++ b/clang/lib/Analysis/CMakeLists.txt @@ -30,6 +30,7 @@ add_clang_library(clangAnalysis    GRBlockCounter.cpp    GRCoreEngine.cpp    GRExprEngine.cpp +  GRExprEngineExperimentalChecks.cpp    GRExprEngineInternalChecks.cpp    GRState.cpp    LiveVariables.cpp diff --git a/clang/lib/Analysis/GRExprEngineExperimentalChecks.cpp b/clang/lib/Analysis/GRExprEngineExperimentalChecks.cpp new file mode 100644 index 00000000000..e50dbeba688 --- /dev/null +++ b/clang/lib/Analysis/GRExprEngineExperimentalChecks.cpp @@ -0,0 +1,23 @@ +//=-- GRExprEngineExperimentalChecks.h ------------------------------*- C++ -*-= +// +//                     The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +//  This file defines functions to instantiate and register experimental +//  checks in GRExprEngine. +// +//===----------------------------------------------------------------------===// + +#include "GRExprEngineExperimentalChecks.h" +#include "clang/Analysis/LocalCheckers.h" + +using namespace clang; + +void clang::RegisterExperimentalChecks(GRExprEngine &Eng) { +  RegisterPthreadLockChecker(Eng);   +} + | 

