]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/Analysis/BasicObjCFoundationChecks.h
Update Clang sources to r73879.
[FreeBSD/FreeBSD.git] / lib / Analysis / BasicObjCFoundationChecks.h
1 //== 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
16 #include "clang/Analysis/PathSensitive/ExplodedGraph.h"
17 #include "clang/Analysis/PathSensitive/GRSimpleAPICheck.h"
18 #include "clang/Analysis/PathSensitive/GRState.h"
19 #include "clang/Analysis/PathDiagnostic.h"
20 #include "clang/AST/Expr.h"
21 #include "clang/AST/ASTContext.h"
22 #include "llvm/Support/Compiler.h"
23
24 #ifndef LLVM_CLANG_ANALYSIS_BASICOBJCFOUNDATIONCHECKS
25 #define LLVM_CLANG_ANALYSIS_BASICOBJCFOUNDATIONCHECKS
26
27 namespace clang {
28   
29 class GRSimpleAPICheck;
30 class ASTContext;
31 class GRStateManager;  
32 class BugReporter;
33 class GRExprEngine;
34   
35 GRSimpleAPICheck* CreateBasicObjCFoundationChecks(ASTContext& Ctx,
36                                                   BugReporter& BR);
37   
38 GRSimpleAPICheck* CreateAuditCFNumberCreate(ASTContext& Ctx,
39                                             BugReporter& BR);
40   
41 void RegisterNSErrorChecks(BugReporter& BR, GRExprEngine &Eng);
42   
43 } // end clang namespace
44
45 #endif