opnsense-src/lib/Checker/BasicObjCFoundationChecks.h

42 lines
1.3 KiB
C
Raw Normal View History

2009-06-02 13:58:47 -04: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.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_CLANG_ANALYSIS_BASICOBJCFOUNDATIONCHECKS
#define LLVM_CLANG_ANALYSIS_BASICOBJCFOUNDATIONCHECKS
namespace clang {
2009-10-14 14:03:49 -04:00
2009-06-02 13:58:47 -04:00
class ASTContext;
class BugReporter;
2009-12-01 06:08:04 -05:00
class Decl;
2009-06-02 13:58:47 -04:00
class GRExprEngine;
2009-12-01 06:08:04 -05:00
class GRSimpleAPICheck;
2009-10-14 14:03:49 -04:00
GRSimpleAPICheck *CreateBasicObjCFoundationChecks(ASTContext& Ctx,
2009-06-02 13:58:47 -04:00
BugReporter& BR);
2009-10-14 14:03:49 -04:00
GRSimpleAPICheck *CreateAuditCFNumberCreate(ASTContext& Ctx,
2009-06-02 13:58:47 -04:00
BugReporter& BR);
2009-10-14 14:03:49 -04:00
GRSimpleAPICheck *CreateAuditCFRetainRelease(ASTContext& Ctx,
BugReporter& BR);
void RegisterNSErrorChecks(BugReporter& BR, GRExprEngine &Eng, const Decl &D);
2009-11-04 10:04:32 -05:00
void RegisterNSAutoreleasePoolChecks(GRExprEngine &Eng);
2009-10-14 14:03:49 -04:00
2009-06-02 13:58:47 -04:00
} // end clang namespace
#endif