aboutsummaryrefslogtreecommitdiff
path: root/lib/StaticAnalyzer/Core/CheckerContext.cpp
blob: e380165c2e86ffbeb204b9b08ece5e17cac413e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//== 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);
}