aboutsummaryrefslogtreecommitdiff
path: root/lib/GR/Checkers/BasicObjCFoundationChecks.h
blob: f4966e8ae838867db6dae2da23680661a442b9d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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