2008-03-28 01:17:22 +08:00
|
|
|
//== 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"
|
2008-08-13 12:27:00 +08:00
|
|
|
#include "clang/Analysis/PathSensitive/GRState.h"
|
2008-03-28 01:17:22 +08:00
|
|
|
#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;
|
2008-08-13 12:27:00 +08:00
|
|
|
class GRStateManager;
|
2008-03-28 01:17:22 +08:00
|
|
|
|
|
|
|
GRSimpleAPICheck* CreateBasicObjCFoundationChecks(ASTContext& Ctx,
|
2008-08-13 12:27:00 +08:00
|
|
|
GRStateManager* VMgr);
|
2008-06-27 07:59:48 +08:00
|
|
|
|
|
|
|
GRSimpleAPICheck* CreateAuditCFNumberCreate(ASTContext& Ctx,
|
2008-08-13 12:27:00 +08:00
|
|
|
GRStateManager* VMgr);
|
2008-06-27 07:59:48 +08:00
|
|
|
|
2008-03-28 01:17:22 +08:00
|
|
|
|
|
|
|
} // end clang namespace
|
|
|
|
|
|
|
|
#endif
|