summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-02-23 07:19:14 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-02-23 07:19:14 +0000
commit2e471a3e476396be1ddca4ab8b9df721bcfc9437 (patch)
tree2b09087a32b2c1ea88b32d7fd75295e08c3f51e2 /examples
parentc56c004e0b8030e8ca8614e7febe581221938b75 (diff)
[analyzer] Add LangOptions in CheckerManager.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126306 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
-rw-r--r--examples/wpa/clang-wpa.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/wpa/clang-wpa.cpp b/examples/wpa/clang-wpa.cpp
index bbb9e147eb..89eddb3562 100644
--- a/examples/wpa/clang-wpa.cpp
+++ b/examples/wpa/clang-wpa.cpp
@@ -155,7 +155,8 @@ int main(int argc, char **argv) {
Opts.CheckersControlList.push_back(std::make_pair("cocoa", true));
llvm::OwningPtr<ento::CheckerManager> checkerMgr;
- checkerMgr.reset(ento::registerCheckers(Opts, PP.getDiagnostics()));
+ checkerMgr.reset(ento::registerCheckers(Opts, PP.getLangOptions(),
+ PP.getDiagnostics()));
using namespace clang::ento;
AnalysisManager AMgr(TU->getASTContext(), PP.getDiagnostics(),