mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-05 15:46:05 +00:00

This moves the responsibility for storing the output node set from the builder to the clients. The builder is just responsible for transforming an input set into the output set: {SrcSet/SrcNode} -> {Frontier}. llvm-svn: 142826
26 lines
845 B
C++
26 lines
845 B
C++
//== 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.begin(),
|
|
E = NB.end(); I != E; ++I) {
|
|
Dst.Add(*I);
|
|
}
|
|
}
|