2011-03-01 01:16:08 +00:00
|
|
|
//== CheckerContext.cpp - Context info for path-sensitive checkers-----------=//
|
2009-11-23 18:53:03 +00:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2011-03-01 01:16:08 +00:00
|
|
|
// This file defines CheckerContext that provides contextual info for
|
|
|
|
// path-sensitive checkers.
|
2009-11-23 18:53:03 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2011-03-01 01:16:08 +00:00
|
|
|
#include "clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h"
|
2009-11-23 18:53:03 +00:00
|
|
|
using namespace clang;
|
2010-12-23 07:20:52 +00:00
|
|
|
using namespace ento;
|
2009-11-23 18:53:03 +00:00
|
|
|
|
2009-11-23 22:22:01 +00:00
|
|
|
CheckerContext::~CheckerContext() {
|
2011-10-18 23:05:58 +00:00
|
|
|
// Copy the results into the Dst set.
|
|
|
|
for (NodeBuilder::iterator I = NB.results_begin(),
|
|
|
|
E = NB.results_end(); I != E; ++I) {
|
|
|
|
Dst.Add(*I);
|
2009-11-23 22:22:01 +00:00
|
|
|
}
|
|
|
|
}
|