blob: 6ad850b973572b1a0d18bc0d9569158fabdaab86 [file] [log] [blame]
Ted Kremenek52755612008-03-27 17:17:22 +00001//== 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 Kremenek52755612008-03-27 17:17:22 +000016#ifndef LLVM_CLANG_ANALYSIS_BASICOBJCFOUNDATIONCHECKS
17#define LLVM_CLANG_ANALYSIS_BASICOBJCFOUNDATIONCHECKS
18
19namespace clang {
Mike Stump1eb44332009-09-09 15:08:12 +000020
Ted Kremenek52755612008-03-27 17:17:22 +000021class ASTContext;
Ted Kremenekcf118d42009-02-04 23:49:09 +000022class BugReporter;
Benjamin Kramer0c5db872009-11-28 09:41:31 +000023class Decl;
Ted Kremenekcf118d42009-02-04 23:49:09 +000024class GRExprEngine;
Mike Stump1eb44332009-09-09 15:08:12 +000025
Zhongxing Xu5ab128b2009-08-21 02:18:44 +000026void RegisterNSErrorChecks(BugReporter& BR, GRExprEngine &Eng, const Decl &D);
Ted Kremenek54cb7cc2009-11-03 08:03:59 +000027void RegisterNSAutoreleasePoolChecks(GRExprEngine &Eng);
Mike Stump1eb44332009-09-09 15:08:12 +000028
Ted Kremenek52755612008-03-27 17:17:22 +000029} // end clang namespace
30
31#endif