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); |
Ted Kremenek | b4b817d | 2009-11-11 03:26:34 +0000 | [diff] [blame] | 23 | void RegisterDereferenceChecker(GRExprEngine &Eng); |
Ted Kremenek | 36df58a | 2009-11-06 20:47:51 +0000 | [diff] [blame] | 24 | void RegisterDivZeroChecker(GRExprEngine &Eng); |
Zhongxing Xu | ceeb02d | 2009-11-06 13:30:44 +0000 | [diff] [blame] | 25 | void RegisterReturnPointerRangeChecker(GRExprEngine &Eng); |
Ted Kremenek | 36df58a | 2009-11-06 20:47:51 +0000 | [diff] [blame] | 26 | void RegisterReturnStackAddressChecker(GRExprEngine &Eng); |
| 27 | void RegisterReturnUndefChecker(GRExprEngine &Eng); |
Ted Kremenek | 84b3595 | 2009-11-06 21:51:50 +0000 | [diff] [blame] | 28 | void RegisterVLASizeChecker(GRExprEngine &Eng); |
Zhongxing Xu | b10a7c2 | 2009-11-09 06:52:44 +0000 | [diff] [blame] | 29 | void RegisterPointerSubChecker(GRExprEngine &Eng); |
Zhongxing Xu | ede7eb2 | 2009-11-09 13:23:31 +0000 | [diff] [blame] | 30 | void RegisterPointerArithChecker(GRExprEngine &Eng); |
Zhongxing Xu | b10a7c2 | 2009-11-09 06:52:44 +0000 | [diff] [blame] | 31 | void RegisterFixedAddressChecker(GRExprEngine &Eng); |
Zhongxing Xu | 4f3dc69 | 2009-11-09 08:07:38 +0000 | [diff] [blame] | 32 | void RegisterCastToStructChecker(GRExprEngine &Eng); |
Zhongxing Xu | d02174c | 2009-11-24 04:45:44 +0000 | [diff] [blame] | 33 | void RegisterCallAndMessageChecker(GRExprEngine &Eng); |
Zhongxing Xu | 58e689f | 2009-11-11 12:33:27 +0000 | [diff] [blame] | 34 | void RegisterArrayBoundChecker(GRExprEngine &Eng); |
Zhongxing Xu | d694485 | 2009-11-11 13:42:54 +0000 | [diff] [blame] | 35 | void RegisterUndefinedArraySubscriptChecker(GRExprEngine &Eng); |
Zhongxing Xu | c3372e0 | 2009-11-22 12:29:52 +0000 | [diff] [blame] | 36 | void RegisterUndefinedAssignmentChecker(GRExprEngine &Eng); |
Zhongxing Xu | 0835e4c | 2009-11-23 03:20:54 +0000 | [diff] [blame] | 37 | void RegisterUndefBranchChecker(GRExprEngine &Eng); |
Zhongxing Xu | 668399b | 2009-11-24 08:24:26 +0000 | [diff] [blame] | 38 | void RegisterUndefResultChecker(GRExprEngine &Eng); |
Ted Kremenek | b4b817d | 2009-11-11 03:26:34 +0000 | [diff] [blame] | 39 | |
Zhongxing Xu | 935ef90 | 2009-12-07 09:17:35 +0000 | [diff] [blame] | 40 | void RegisterNoReturnFunctionChecker(GRExprEngine &Eng); |
Zhongxing Xu | 7c9624b | 2009-12-08 09:07:59 +0000 | [diff] [blame] | 41 | void RegisterBuiltinFunctionChecker(GRExprEngine &Eng); |
Zhongxing Xu | 935ef90 | 2009-12-07 09:17:35 +0000 | [diff] [blame] | 42 | |
Ted Kremenek | 1053d24 | 2009-11-06 02:24:13 +0000 | [diff] [blame] | 43 | } // end clang namespace |
| 44 | #endif |