blob: e380165c2e86ffbeb204b9b08ece5e17cac413e3 [file] [log] [blame]
//== CheckerContext.cpp - Context info for path-sensitive checkers-----------=//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file defines CheckerContext that provides contextual info for
// path-sensitive checkers.
//
//===----------------------------------------------------------------------===//
#include "clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h"
using namespace clang;
using namespace ento;
CheckerContext::~CheckerContext() {
// Copy the results into the Dst set.
for (NodeBuilder::iterator I = NB.results_begin(),
E = NB.results_end(); I != E; ++I) {
Dst.Add(*I);
}
// Copy the results into the StmtNodeBuilder.
//TODO: This will be removed after we completely migrate NodeBuilder.
B.importNodesFromBuilder(NB);
}