Ted Kremenek | 5275561 | 2008-03-27 17:17:22 +0000 | [diff] [blame] | 1 | //== BasicObjCFoundationChecks.h - Simple Apple-Foundation 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 BasicObjCFoundationChecks, a class that encapsulates |
| 11 | // a set of simple checks to run on Objective-C code using Apple's Foundation |
| 12 | // classes. |
| 13 | // |
| 14 | //===----------------------------------------------------------------------===// |
| 15 | |
Ted Kremenek | 5275561 | 2008-03-27 17:17:22 +0000 | [diff] [blame] | 16 | #ifndef LLVM_CLANG_ANALYSIS_BASICOBJCFOUNDATIONCHECKS |
| 17 | #define LLVM_CLANG_ANALYSIS_BASICOBJCFOUNDATIONCHECKS |
| 18 | |
| 19 | namespace clang { |
Mike Stump | 1eb4433 | 2009-09-09 15:08:12 +0000 | [diff] [blame] | 20 | |
Ted Kremenek | 5275561 | 2008-03-27 17:17:22 +0000 | [diff] [blame] | 21 | class ASTContext; |
Ted Kremenek | cf118d4 | 2009-02-04 23:49:09 +0000 | [diff] [blame] | 22 | class BugReporter; |
Benjamin Kramer | 0c5db87 | 2009-11-28 09:41:31 +0000 | [diff] [blame^] | 23 | class Decl; |
Ted Kremenek | cf118d4 | 2009-02-04 23:49:09 +0000 | [diff] [blame] | 24 | class GRExprEngine; |
Benjamin Kramer | 0c5db87 | 2009-11-28 09:41:31 +0000 | [diff] [blame^] | 25 | class GRSimpleAPICheck; |
Mike Stump | 1eb4433 | 2009-09-09 15:08:12 +0000 | [diff] [blame] | 26 | |
Ted Kremenek | 79b4f7d | 2009-07-14 00:43:42 +0000 | [diff] [blame] | 27 | GRSimpleAPICheck *CreateBasicObjCFoundationChecks(ASTContext& Ctx, |
Ted Kremenek | cf118d4 | 2009-02-04 23:49:09 +0000 | [diff] [blame] | 28 | BugReporter& BR); |
Mike Stump | 1eb4433 | 2009-09-09 15:08:12 +0000 | [diff] [blame] | 29 | |
Ted Kremenek | 79b4f7d | 2009-07-14 00:43:42 +0000 | [diff] [blame] | 30 | GRSimpleAPICheck *CreateAuditCFNumberCreate(ASTContext& Ctx, |
Ted Kremenek | cf118d4 | 2009-02-04 23:49:09 +0000 | [diff] [blame] | 31 | BugReporter& BR); |
Mike Stump | 1eb4433 | 2009-09-09 15:08:12 +0000 | [diff] [blame] | 32 | |
Ted Kremenek | 79b4f7d | 2009-07-14 00:43:42 +0000 | [diff] [blame] | 33 | GRSimpleAPICheck *CreateAuditCFRetainRelease(ASTContext& Ctx, |
| 34 | BugReporter& BR); |
Mike Stump | 1eb4433 | 2009-09-09 15:08:12 +0000 | [diff] [blame] | 35 | |
Zhongxing Xu | 5ab128b | 2009-08-21 02:18:44 +0000 | [diff] [blame] | 36 | void RegisterNSErrorChecks(BugReporter& BR, GRExprEngine &Eng, const Decl &D); |
Ted Kremenek | 54cb7cc | 2009-11-03 08:03:59 +0000 | [diff] [blame] | 37 | void RegisterNSAutoreleasePoolChecks(GRExprEngine &Eng); |
Mike Stump | 1eb4433 | 2009-09-09 15:08:12 +0000 | [diff] [blame] | 38 | |
Ted Kremenek | 5275561 | 2008-03-27 17:17:22 +0000 | [diff] [blame] | 39 | } // end clang namespace |
| 40 | |
| 41 | #endif |