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 | eb94113be0ee5f4d38408b413d92464a0bc16b55 (patch) | |
tree | b4e85114961d1effbc84af3bde3e846bd2788bfb /lib/Analysis/GRExprEngineExperimentalChecks.cpp | |
parent | 21dac5e24a14d3288565515b35ad98c38460c9dd (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@87053 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/GRExprEngineExperimentalChecks.cpp')
-rw-r--r-- | lib/Analysis/GRExprEngineExperimentalChecks.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/Analysis/GRExprEngineExperimentalChecks.cpp b/lib/Analysis/GRExprEngineExperimentalChecks.cpp new file mode 100644 index 0000000000..e50dbeba68 --- /dev/null +++ b/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); +} + |