summaryrefslogtreecommitdiffstats
path: root/lib/Analysis/BasicObjCFoundationChecks.h
blob: 6c594ea721996fa45f33a6f3e25a2b7470c9b1f1 (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
37
38
39
40
41
42
43
44
45
46
47
//== 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.
//
//===----------------------------------------------------------------------===//

#include "clang/Analysis/PathSensitive/ExplodedGraph.h"
#include "clang/Analysis/PathSensitive/GRSimpleAPICheck.h"
#include "clang/Analysis/PathSensitive/GRState.h"
#include "clang/Analysis/PathDiagnostic.h"
#include "clang/AST/Expr.h"
#include "clang/AST/ASTContext.h"
#include "llvm/Support/Compiler.h"

#ifndef LLVM_CLANG_ANALYSIS_BASICOBJCFOUNDATIONCHECKS
#define LLVM_CLANG_ANALYSIS_BASICOBJCFOUNDATIONCHECKS

namespace clang {
  
class GRSimpleAPICheck;
class ASTContext;
class GRStateManager;  
class BugReporter;
class GRExprEngine;
  
GRSimpleAPICheck* CreateBasicObjCFoundationChecks(ASTContext& Ctx,
                                                  GRStateManager* VMgr,
                                                  BugReporter& BR);
  
GRSimpleAPICheck* CreateAuditCFNumberCreate(ASTContext& Ctx,
                                            GRStateManager* VMgr,
                                            BugReporter& BR);
  
void RegisterNSErrorChecks(BugReporter& BR, GRExprEngine &Eng);
  
} // end clang namespace

#endif
OpenPOWER on IntegriCloud