clang 22.0.0git
clang::ObjCMethodList Struct Reference

a linked list of methods with the same selector name but different signatures. More...

#include "clang/Sema/ObjCMethodList.h"

Public Member Functions

 ObjCMethodList ()
 ObjCMethodList (ObjCMethodDecl *M)
 ObjCMethodList (const ObjCMethodList &L)
ObjCMethodListoperator= (const ObjCMethodList &L)
ObjCMethodListgetNext () const
unsigned getBits () const
void setNext (ObjCMethodList *L)
void setBits (unsigned B)
ObjCMethodDeclgetMethod () const
void setMethod (ObjCMethodDecl *M)
bool hasMoreThanOneDecl () const
void setHasMoreThanOneDecl (bool B)

Public Attributes

llvm::PointerIntPair< ObjCMethodDecl *, 1 > MethodAndHasMoreThanOneDecl
 If there is more than one decl with this signature.
llvm::PointerIntPair< ObjCMethodList *, 2 > NextAndExtraBits
 The next list object and 2 bits for extra info.

Detailed Description

a linked list of methods with the same selector name but different signatures.

Definition at line 25 of file ObjCMethodList.h.

Constructor & Destructor Documentation

◆ ObjCMethodList() [1/3]

clang::ObjCMethodList::ObjCMethodList ( )
inline

Definition at line 32 of file ObjCMethodList.h.

Referenced by getNext(), ObjCMethodList(), operator=(), and setNext().

◆ ObjCMethodList() [2/3]

clang::ObjCMethodList::ObjCMethodList ( ObjCMethodDecl * M)
inline

Definition at line 33 of file ObjCMethodList.h.

References MethodAndHasMoreThanOneDecl.

◆ ObjCMethodList() [3/3]

clang::ObjCMethodList::ObjCMethodList ( const ObjCMethodList & L)
inline

Definition at line 35 of file ObjCMethodList.h.

References MethodAndHasMoreThanOneDecl, NextAndExtraBits, and ObjCMethodList().

Member Function Documentation

◆ getBits()

unsigned clang::ObjCMethodList::getBits ( ) const
inline

◆ getMethod()

ObjCMethodDecl * clang::ObjCMethodList::getMethod ( ) const
inline

◆ getNext()

◆ hasMoreThanOneDecl()

bool clang::ObjCMethodList::hasMoreThanOneDecl ( ) const
inline

◆ operator=()

ObjCMethodList & clang::ObjCMethodList::operator= ( const ObjCMethodList & L)
inline

Definition at line 39 of file ObjCMethodList.h.

References MethodAndHasMoreThanOneDecl, NextAndExtraBits, and ObjCMethodList().

◆ setBits()

void clang::ObjCMethodList::setBits ( unsigned B)
inline

Definition at line 48 of file ObjCMethodList.h.

References NextAndExtraBits.

Referenced by clang::SemaObjC::addMethodToGlobalList().

◆ setHasMoreThanOneDecl()

void clang::ObjCMethodList::setHasMoreThanOneDecl ( bool B)
inline

Definition at line 60 of file ObjCMethodList.h.

References MethodAndHasMoreThanOneDecl.

Referenced by clang::SemaObjC::addMethodToGlobalList().

◆ setMethod()

void clang::ObjCMethodList::setMethod ( ObjCMethodDecl * M)
inline

Definition at line 53 of file ObjCMethodList.h.

References MethodAndHasMoreThanOneDecl.

Referenced by clang::SemaObjC::addMethodToGlobalList().

◆ setNext()

void clang::ObjCMethodList::setNext ( ObjCMethodList * L)
inline

Definition at line 47 of file ObjCMethodList.h.

References NextAndExtraBits, and ObjCMethodList().

Referenced by clang::SemaObjC::addMethodToGlobalList().

Member Data Documentation

◆ MethodAndHasMoreThanOneDecl

llvm::PointerIntPair<ObjCMethodDecl *, 1> clang::ObjCMethodList::MethodAndHasMoreThanOneDecl

If there is more than one decl with this signature.

Definition at line 28 of file ObjCMethodList.h.

Referenced by getMethod(), hasMoreThanOneDecl(), ObjCMethodList(), ObjCMethodList(), operator=(), setHasMoreThanOneDecl(), and setMethod().

◆ NextAndExtraBits

llvm::PointerIntPair<ObjCMethodList *, 2> clang::ObjCMethodList::NextAndExtraBits

The next list object and 2 bits for extra info.

Definition at line 30 of file ObjCMethodList.h.

Referenced by getBits(), getNext(), ObjCMethodList(), operator=(), setBits(), and setNext().


The documentation for this struct was generated from the following file: