diff options
Diffstat (limited to 'clang/lib/StaticAnalyzer/EntoSA/Checkers/BasicObjCFoundationChecks.h')
-rw-r--r-- | clang/lib/StaticAnalyzer/EntoSA/Checkers/BasicObjCFoundationChecks.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/clang/lib/StaticAnalyzer/EntoSA/Checkers/BasicObjCFoundationChecks.h b/clang/lib/StaticAnalyzer/EntoSA/Checkers/BasicObjCFoundationChecks.h new file mode 100644 index 00000000000..f4966e8ae83 --- /dev/null +++ b/clang/lib/StaticAnalyzer/EntoSA/Checkers/BasicObjCFoundationChecks.h @@ -0,0 +1,36 @@ +//== 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_GR_BASICOBJCFOUNDATIONCHECKS +#define LLVM_CLANG_GR_BASICOBJCFOUNDATIONCHECKS + +namespace clang { + +class ASTContext; +class Decl; + +namespace ento { + +class BugReporter; +class ExprEngine; + +void RegisterNSErrorChecks(BugReporter& BR, ExprEngine &Eng, const Decl &D); +void RegisterNSAutoreleasePoolChecks(ExprEngine &Eng); + +} // end GR namespace + +} // end clang namespace + +#endif |