Ted Kremenek | d59cccc | 2008-02-14 18:28:23 +0000 | [diff] [blame^] | 1 | // GRSimpleVals.h - Transfer functions for tracking simple values -*- 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 files defines GRSimpleVals, a sub-class of GRTransferFuncs that |
| 11 | // provides transfer functions for performing simple value tracking with |
| 12 | // limited support for symbolics. |
| 13 | // |
| 14 | //===----------------------------------------------------------------------===// |
| 15 | |
| 16 | #ifndef LLVM_CLANG_ANALYSIS_GRSIMPLEVALS |
| 17 | #define LLVM_CLANG_ANALYSIS_GRSIMPLEVALS |
| 18 | |
| 19 | #include "clang/Analysis/PathSensitive/GRTransferFuncs.h" |
| 20 | |
| 21 | namespace clang { |
| 22 | |
| 23 | class GRSimpleVals : public GRTransferFuncs { |
| 24 | public: |
| 25 | GRSimpleVals() {} |
| 26 | virtual ~GRSimpleVals() {} |
| 27 | |
| 28 | virtual RValue EvalCast(ValueManager& ValMgr, NonLValue V, Expr* CastExpr); |
| 29 | virtual RValue EvalCast(ValueManager& ValMgr, LValue V, Expr* CastExpr); |
| 30 | }; |
| 31 | |
| 32 | |
| 33 | } // end clang namespace |
| 34 | |
| 35 | #endif |