diff options
Diffstat (limited to 'contrib/llvm/tools/clang/lib/Checker/BasicObjCFoundationChecks.h')
-rw-r--r-- | contrib/llvm/tools/clang/lib/Checker/BasicObjCFoundationChecks.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/contrib/llvm/tools/clang/lib/Checker/BasicObjCFoundationChecks.h b/contrib/llvm/tools/clang/lib/Checker/BasicObjCFoundationChecks.h new file mode 100644 index 0000000..679c6dc --- /dev/null +++ b/contrib/llvm/tools/clang/lib/Checker/BasicObjCFoundationChecks.h @@ -0,0 +1,41 @@ +//== BasicObjCFoundationChecks.h - Simple Apple-Foundation checks -*- C++ -*--// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines BasicObjCFoundationChecks, a class that encapsulates +// a set of simple checks to run on Objective-C code using Apple's Foundation +// classes. +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_CLANG_ANALYSIS_BASICOBJCFOUNDATIONCHECKS +#define LLVM_CLANG_ANALYSIS_BASICOBJCFOUNDATIONCHECKS + +namespace clang { + +class ASTContext; +class BugReporter; +class Decl; +class GRExprEngine; +class GRSimpleAPICheck; + +GRSimpleAPICheck *CreateBasicObjCFoundationChecks(ASTContext& Ctx, + BugReporter& BR); + +GRSimpleAPICheck *CreateAuditCFNumberCreate(ASTContext& Ctx, + BugReporter& BR); + +GRSimpleAPICheck *CreateAuditCFRetainRelease(ASTContext& Ctx, + BugReporter& BR); + +void RegisterNSErrorChecks(BugReporter& BR, GRExprEngine &Eng, const Decl &D); +void RegisterNSAutoreleasePoolChecks(GRExprEngine &Eng); + +} // end clang namespace + +#endif |