class NSAPI

Declaration

class NSAPI { /* full declaration omitted */ };

Declared at: clang/include/clang/AST/NSAPI.h:23

Member Variables

private clang::ASTContext& Ctx
private clang::IdentifierInfo* [10] ClassIds
private clang::Selector[6] NSStringSelectors
private clang::Selector[12] NSArraySelectors
The selectors for Objective-C NSArray methods.
private clang::Selector[13] NSDictionarySelectors
The selectors for Objective-C NSDictionary methods.
private clang::Selector[5] NSSetSelectors
The selectors for Objective-C NSSet methods.
private clang::Selector[15] NSNumberClassSelectors
The Objective-C NSNumber selectors used to create NSNumber literals.
private clang::Selector[15] NSNumberInstanceSelectors
private clang::Selector objectForKeyedSubscriptSel
private clang::Selector objectAtIndexedSubscriptSel
private clang::Selector setObjectForKeyedSubscriptSel
private clang::Selector setObjectAtIndexedSubscriptSel
private clang::Selector isEqualSel
private clang::Selector InitSel
private clang::Selector NewSel
private clang::IdentifierInfo* BOOLId
private clang::IdentifierInfo* NSIntegerId
private clang::IdentifierInfo* NSUIntegerId
private clang::IdentifierInfo* NSASCIIStringEncodingId
private clang::IdentifierInfo* NSUTF8StringEncodingId
public static const unsigned int NumClassIds = 10
public static const unsigned int NumNSStringMethods = 6
public static const unsigned int NumNSArrayMethods = 12
public static const unsigned int NumNSDictionaryMethods = 13
public static const unsigned int NumNSSetMethods = 5
public static const unsigned int NumNSNumberLiteralMethods = 15

Method Overview

Methods

llvm::StringRef GetNSIntegralKind(
    clang::QualType T) const

Description

Returns one of NSIntegral typedef names if

Declared at: clang/include/clang/AST/NSAPI.h:222

Parameters

clang::QualType T
is a typedef of that name in objective-c.

NSAPI(clang::ASTContext& Ctx)

Declared at: clang/include/clang/AST/NSAPI.h:25

Parameters

clang::ASTContext& Ctx

clang::ASTContext& getASTContext() const

Declared at: clang/include/clang/AST/NSAPI.h:27

clang::Selector getInitSelector() const

Declared at: clang/include/clang/AST/NSAPI.h:169

clang::Selector getIsEqualSelector() const

Description

Returns selector for "isEqual:".

Declared at: clang/include/clang/AST/NSAPI.h:161

Optional<clang::NSAPI::NSArrayMethodKind>
getNSArrayMethodKind(clang::Selector Sel)

Description

Return NSArrayMethodKind if \p Sel is such a selector.

Declared at: clang/include/clang/AST/NSAPI.h:92

Parameters

clang::Selector Sel

clang::Selector getNSArraySelector(
    clang::NSAPI::NSArrayMethodKind MK) const

Description

The Objective-C NSArray selectors.

Declared at: clang/include/clang/AST/NSAPI.h:89

Parameters

clang::NSAPI::NSArrayMethodKind MK

clang::IdentifierInfo* getNSClassId(
    clang::NSAPI::NSClassIdKindKind K) const

Declared at: clang/include/clang/AST/NSAPI.h:53

Parameters

clang::NSAPI::NSClassIdKindKind K

Optional<clang::NSAPI::NSDictionaryMethodKind>
getNSDictionaryMethodKind(clang::Selector Sel)

Description

Return NSDictionaryMethodKind if \p Sel is such a selector.

Declared at: clang/include/clang/AST/NSAPI.h:117

Parameters

clang::Selector Sel

clang::Selector getNSDictionarySelector(
    clang::NSAPI::NSDictionaryMethodKind MK) const

Description

The Objective-C NSDictionary selectors.

Declared at: clang/include/clang/AST/NSAPI.h:114

Parameters

clang::NSAPI::NSDictionaryMethodKind MK

Optional<clang::NSAPI::NSNumberLiteralMethodKind>
getNSNumberFactoryMethodKind(
    clang::QualType T) const

Description

Determine the appropriate NSNumber factory method kind for a literal of the given type.

Declared at: clang/include/clang/AST/NSAPI.h:212

Parameters

clang::QualType T

Optional<clang::NSAPI::NSNumberLiteralMethodKind>
getNSNumberLiteralMethodKind(
    clang::Selector Sel) const

Description

Return NSNumberLiteralMethodKind if \p Sel is such a selector.

Declared at: clang/include/clang/AST/NSAPI.h:207

Parameters

clang::Selector Sel

clang::Selector getNSNumberLiteralSelector(
    clang::NSAPI::NSNumberLiteralMethodKind MK,
    bool Instance) const

Description

The Objective-C NSNumber selectors used to create NSNumber literals.

Declared at: clang/include/clang/AST/NSAPI.h:196

Parameters

clang::NSAPI::NSNumberLiteralMethodKind MK
bool Instance
if true it will return the selector for the init* method otherwise it will return the selector for the number* method.

Optional<clang::NSAPI::NSSetMethodKind>
getNSSetMethodKind(clang::Selector Sel)

Description

Return NSSetMethodKind if \p Sel is such a selector.

Declared at: clang/include/clang/AST/NSAPI.h:134

Parameters

clang::Selector Sel

clang::Selector getNSSetSelector(
    clang::NSAPI::NSSetMethodKind MK) const

Description

The Objective-C NSSet selectors.

Declared at: clang/include/clang/AST/NSAPI.h:131

Parameters

clang::NSAPI::NSSetMethodKind MK

clang::Selector getNSStringSelector(
    clang::NSAPI::NSStringMethodKind MK) const

Description

The Objective-C NSString selectors.

Declared at: clang/include/clang/AST/NSAPI.h:56

Parameters

clang::NSAPI::NSStringMethodKind MK

clang::Selector getNewSelector() const

Declared at: clang/include/clang/AST/NSAPI.h:165

clang::Selector
getObjectAtIndexedSubscriptSelector() const

Description

Returns selector for "objectAtIndexedSubscript:".

Declared at: clang/include/clang/AST/NSAPI.h:143

clang::Selector
getObjectForKeyedSubscriptSelector() const

Description

Returns selector for "objectForKeyedSubscript:".

Declared at: clang/include/clang/AST/NSAPI.h:137

clang::Selector getOrInitNullarySelector(
    llvm::StringRef Id,
    clang::Selector& Sel) const

Declared at: clang/include/clang/AST/NSAPI.h:236

Parameters

llvm::StringRef Id
clang::Selector& Sel

clang::Selector getOrInitSelector(
    ArrayRef<llvm::StringRef> Ids,
    clang::Selector& Sel) const

Declared at: clang/include/clang/AST/NSAPI.h:235

Parameters

ArrayRef<llvm::StringRef> Ids
clang::Selector& Sel

clang::Selector
getSetObjectAtIndexedSubscriptSelector() const

Description

Returns selector for "setObject:atIndexedSubscript".

Declared at: clang/include/clang/AST/NSAPI.h:155

clang::Selector
getSetObjectForKeyedSubscriptSelector() const

Description

Returns selector for "setObject:forKeyedSubscript".

Declared at: clang/include/clang/AST/NSAPI.h:149

bool isMacroDefined(llvm::StringRef Id) const

Description

Returns \c true if \p Id is currently defined as a macro.

Declared at: clang/include/clang/AST/NSAPI.h:225

Parameters

llvm::StringRef Id

bool isNSASCIIStringEncodingConstant(
    const clang::Expr* E) const

Description

Returns true if the expression

Declared at: clang/include/clang/AST/NSAPI.h:66

Parameters

const clang::Expr* E
is a reference of "NSASCIIStringEncoding" enum constant.

bool isNSNumberLiteralSelector(
    clang::NSAPI::NSNumberLiteralMethodKind MK,
    clang::Selector Sel) const

Declared at: clang/include/clang/AST/NSAPI.h:199

Parameters

clang::NSAPI::NSNumberLiteralMethodKind MK
clang::Selector Sel

bool isNSUTF8StringEncodingConstant(
    const clang::Expr* E) const

Description

Returns true if the expression

Declared at: clang/include/clang/AST/NSAPI.h:60

Parameters

const clang::Expr* E
is a reference of "NSUTF8StringEncoding" enum constant.

bool isObjCBOOLType(clang::QualType T) const

Description

Returns true if

Declared at: clang/include/clang/AST/NSAPI.h:215

Parameters

clang::QualType T
is a typedef of "BOOL" in objective-c.

bool isObjCEnumerator(
    const clang::Expr* E,
    llvm::StringRef name,
    clang::IdentifierInfo*& II) const

Declared at: clang/include/clang/AST/NSAPI.h:233

Parameters

const clang::Expr* E
llvm::StringRef name
clang::IdentifierInfo*& II

bool isObjCNSIntegerType(clang::QualType T) const

Description

Returns true if

Declared at: clang/include/clang/AST/NSAPI.h:217

Parameters

clang::QualType T
is a typedef of "NSInteger" in objective-c.

bool isObjCNSUIntegerType(clang::QualType T) const

Description

Returns true if

Declared at: clang/include/clang/AST/NSAPI.h:219

Parameters

clang::QualType T
is a typedef of "NSUInteger" in objective-c.

bool isObjCTypedef(
    clang::QualType T,
    llvm::StringRef name,
    clang::IdentifierInfo*& II) const

Declared at: clang/include/clang/AST/NSAPI.h:232

Parameters

clang::QualType T
llvm::StringRef name
clang::IdentifierInfo*& II

bool isSubclassOfNSClass(
    clang::ObjCInterfaceDecl* InterfaceDecl,
    clang::NSAPI::NSClassIdKindKind NSClassKind)
    const

Description

Returns \c true if \p InterfaceDecl is subclass of \p NSClassKind

Declared at: clang/include/clang/AST/NSAPI.h:228

Parameters

clang::ObjCInterfaceDecl* InterfaceDecl
clang::NSAPI::NSClassIdKindKind NSClassKind