Ted Kremenek | 1053d24 | 2009-11-06 02:24:13 +0000 | [diff] [blame] | 1 | //=-- GRExprEngineInternalChecks.h- Builtin GRExprEngine Checks -----*- 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 functions to instantiate and register the "built-in" |
| 11 | // checks in GRExprEngine. |
| 12 | // |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | |
| 15 | #ifndef LLVM_CLANG_GREXPRENGINE_INTERNAL_CHECKS |
| 16 | #define LLVM_CLANG_GREXPRENGINE_INTERNAL_CHECKS |
| 17 | |
| 18 | namespace clang { |
| 19 | |
| 20 | class GRExprEngine; |
| 21 | |
Ted Kremenek | f493f49 | 2009-11-11 05:50:44 +0000 | [diff] [blame] | 22 | void RegisterAttrNonNullChecker(GRExprEngine &Eng); |
| 23 | void RegisterBadCallChecker(GRExprEngine &Eng); |
Ted Kremenek | b4b817d | 2009-11-11 03:26:34 +0000 | [diff] [blame] | 24 | void RegisterDereferenceChecker(GRExprEngine &Eng); |
Ted Kremenek | 36df58a | 2009-11-06 20:47:51 +0000 | [diff] [blame] | 25 | void RegisterDivZeroChecker(GRExprEngine &Eng); |
Zhongxing Xu | ceeb02d | 2009-11-06 13:30:44 +0000 | [diff] [blame] | 26 | void RegisterReturnPointerRangeChecker(GRExprEngine &Eng); |
Ted Kremenek | 36df58a | 2009-11-06 20:47:51 +0000 | [diff] [blame] | 27 | void RegisterReturnStackAddressChecker(GRExprEngine &Eng); |
| 28 | void RegisterReturnUndefChecker(GRExprEngine &Eng); |
Ted Kremenek | 84b3595 | 2009-11-06 21:51:50 +0000 | [diff] [blame] | 29 | void RegisterVLASizeChecker(GRExprEngine &Eng); |
Zhongxing Xu | b10a7c2 | 2009-11-09 06:52:44 +0000 | [diff] [blame] | 30 | void RegisterPointerSubChecker(GRExprEngine &Eng); |
Zhongxing Xu | ede7eb2 | 2009-11-09 13:23:31 +0000 | [diff] [blame] | 31 | void RegisterPointerArithChecker(GRExprEngine &Eng); |
Zhongxing Xu | b10a7c2 | 2009-11-09 06:52:44 +0000 | [diff] [blame] | 32 | void RegisterFixedAddressChecker(GRExprEngine &Eng); |
Zhongxing Xu | 4f3dc69 | 2009-11-09 08:07:38 +0000 | [diff] [blame] | 33 | void RegisterCastToStructChecker(GRExprEngine &Eng); |
Ted Kremenek | f493f49 | 2009-11-11 05:50:44 +0000 | [diff] [blame] | 34 | void RegisterUndefinedArgChecker(GRExprEngine &Eng); |
Zhongxing Xu | 58e689f | 2009-11-11 12:33:27 +0000 | [diff] [blame] | 35 | void RegisterArrayBoundChecker(GRExprEngine &Eng); |
Zhongxing Xu | d694485 | 2009-11-11 13:42:54 +0000 | [diff] [blame] | 36 | void RegisterUndefinedArraySubscriptChecker(GRExprEngine &Eng); |
Ted Kremenek | b4b817d | 2009-11-11 03:26:34 +0000 | [diff] [blame] | 37 | |
Ted Kremenek | 1053d24 | 2009-11-06 02:24:13 +0000 | [diff] [blame] | 38 | } // end clang namespace |
| 39 | #endif |