]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/Analysis/GRTransferFuncs.cpp
Update Clang sources to r73879.
[FreeBSD/FreeBSD.git] / lib / Analysis / GRTransferFuncs.cpp
1 //== GRTransferFuncs.cpp - Path-Sens. Transfer Functions Interface -*- C++ -*--=
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 //  This file defines GRTransferFuncs, which provides a base-class that
11 //  defines an interface for transfer functions used by GRExprEngine.
12 //
13 //===----------------------------------------------------------------------===//
14
15 #include "clang/Analysis/PathSensitive/GRTransferFuncs.h"
16 #include "clang/Analysis/PathSensitive/GRExprEngine.h"
17
18 using namespace clang;
19
20 void GRTransferFuncs::EvalBinOpNN(GRStateSet& OStates,
21                                   GRExprEngine& Eng,
22                                   const GRState *St, Expr* Ex,
23                                   BinaryOperator::Opcode Op,
24                                   NonLoc L, NonLoc R, QualType T) {
25   
26   OStates.Add(St->bindExpr(Ex, DetermEvalBinOpNN(Eng, Op, L, R, T)));
27 }