blob: 24415419cacbd096aa6d1294e03d98bc0d82d1b6 [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
16#include "clang/Analysis/PathSensitive/ExplodedGraph.h"
17#include "clang/Analysis/PathSensitive/GRSimpleAPICheck.h"
Ted Kremenek4adc81e2008-08-13 04:27:00 +000018#include "clang/Analysis/PathSensitive/GRState.h"
Ted Kremenek52755612008-03-27 17:17:22 +000019#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
27namespace clang {
28
29class GRSimpleAPICheck;
30class ASTContext;
Ted Kremenek4adc81e2008-08-13 04:27:00 +000031class GRStateManager;
Ted Kremenek52755612008-03-27 17:17:22 +000032
33GRSimpleAPICheck* CreateBasicObjCFoundationChecks(ASTContext& Ctx,
Ted Kremenek4adc81e2008-08-13 04:27:00 +000034 GRStateManager* VMgr);
Ted Kremenek04bc8762008-06-26 23:59:48 +000035
36GRSimpleAPICheck* CreateAuditCFNumberCreate(ASTContext& Ctx,
Ted Kremenek4adc81e2008-08-13 04:27:00 +000037 GRStateManager* VMgr);
Ted Kremenek04bc8762008-06-26 23:59:48 +000038
Ted Kremenek52755612008-03-27 17:17:22 +000039
40} // end clang namespace
41
42#endif