1 //== BasicObjCFoundationChecks.h - Simple Apple-Foundation checks -*- C++ -*--//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
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
14 //===----------------------------------------------------------------------===//
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"
24 #ifndef LLVM_CLANG_ANALYSIS_BASICOBJCFOUNDATIONCHECKS
25 #define LLVM_CLANG_ANALYSIS_BASICOBJCFOUNDATIONCHECKS
29 class GRSimpleAPICheck;
35 GRSimpleAPICheck* CreateBasicObjCFoundationChecks(ASTContext& Ctx,
38 GRSimpleAPICheck* CreateAuditCFNumberCreate(ASTContext& Ctx,
41 void RegisterNSErrorChecks(BugReporter& BR, GRExprEngine &Eng);
43 } // end clang namespace