clang API Documentation
#include <BodyFarm.h>
Public Member Functions | |
BodyFarm (ASTContext &C, CodeInjector *injector) | |
Stmt * | getBody (const FunctionDecl *D) |
Factory method for creating bodies for ordinary functions. | |
Stmt * | getBody (const ObjCMethodDecl *D) |
Factory method for creating bodies for Objective-C properties. |
Definition at line 32 of file BodyFarm.h.
clang::BodyFarm::BodyFarm | ( | ASTContext & | C, |
CodeInjector * | injector | ||
) | [inline] |
Definition at line 34 of file BodyFarm.h.
Stmt * BodyFarm::getBody | ( | const FunctionDecl * | D | ) |
Factory method for creating bodies for ordinary functions.
Definition at line 355 of file BodyFarm.cpp.
References create_dispatch_once(), create_dispatch_sync(), create_OSAtomicCompareAndSwap(), clang::CodeInjector::getBody(), clang::FunctionDecl::getCanonicalDecl(), clang::NamedDecl::getIdentifier(), and clang::NamedDecl::getName().
Stmt * BodyFarm::getBody | ( | const ObjCMethodDecl * | D | ) |
Factory method for creating bodies for Objective-C properties.
Definition at line 448 of file BodyFarm.cpp.
References createObjCPropertyGetter(), clang::ObjCMethodDecl::findPropertyDecl(), clang::ObjCMethodDecl::getCanonicalDecl(), clang::ObjCMethodDecl::isPropertyAccessor(), and clang::ObjCMethodDecl::param_size().