clang API Documentation

Typedefs | Functions
BodyFarm.cpp File Reference
#include "BodyFarm.h"
#include "clang/Analysis/CodeInjector.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/Decl.h"
#include "clang/AST/Expr.h"
#include "clang/AST/ExprObjC.h"
#include "llvm/ADT/StringSwitch.h"
Include dependency graph for BodyFarm.cpp:

Go to the source code of this file.

Typedefs

typedef Stmt *(* FunctionFarmer )(ASTContext &C, const FunctionDecl *D)

Functions

static bool isDispatchBlock (QualType Ty)
static Stmt * create_dispatch_once (ASTContext &C, const FunctionDecl *D)
 Create a fake body for dispatch_once.
static Stmt * create_dispatch_sync (ASTContext &C, const FunctionDecl *D)
 Create a fake body for dispatch_sync.
static Stmt * create_OSAtomicCompareAndSwap (ASTContext &C, const FunctionDecl *D)
static Stmt * createObjCPropertyGetter (ASTContext &Ctx, const ObjCPropertyDecl *Prop)

Typedef Documentation

typedef Stmt*(* FunctionFarmer)(ASTContext &C, const FunctionDecl *D)

Definition at line 171 of file BodyFarm.cpp.


Function Documentation

static Stmt* create_dispatch_once ( ASTContext &  C,
const FunctionDecl *  D 
) [static]
static Stmt* create_dispatch_sync ( ASTContext &  C,
const FunctionDecl *  D 
) [static]
static Stmt* create_OSAtomicCompareAndSwap ( ASTContext &  C,
const FunctionDecl *  D 
) [static]
static Stmt* createObjCPropertyGetter ( ASTContext &  Ctx,
const ObjCPropertyDecl *  Prop 
) [static]
static bool isDispatchBlock ( QualType  Ty) [static]