clang API Documentation
#include <DeclGroup.h>
Public Types | |
| typedef Decl ** | iterator |
| typedef Decl *const * | const_iterator |
Public Member Functions | |
| DeclGroupRef () | |
| DeclGroupRef (Decl *d) | |
| DeclGroupRef (DeclGroup *dg) | |
| bool | isNull () const |
| bool | isSingleDecl () const |
| bool | isDeclGroup () const |
| Decl * | getSingleDecl () |
| const Decl * | getSingleDecl () const |
| DeclGroup & | getDeclGroup () |
| const DeclGroup & | getDeclGroup () const |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
| void * | getAsOpaquePtr () const |
Static Public Member Functions | |
| static DeclGroupRef | Create (ASTContext &C, Decl **Decls, unsigned NumDecls) |
| static DeclGroupRef | getFromOpaquePtr (void *Ptr) |
Definition at line 55 of file DeclGroup.h.
| typedef Decl* const* clang::DeclGroupRef::const_iterator |
Definition at line 81 of file DeclGroup.h.
| typedef Decl** clang::DeclGroupRef::iterator |
Definition at line 80 of file DeclGroup.h.
| clang::DeclGroupRef::DeclGroupRef | ( | ) | [inline] |
Definition at line 66 of file DeclGroup.h.
Referenced by Create().
| clang::DeclGroupRef::DeclGroupRef | ( | Decl * | d | ) | [inline, explicit] |
Definition at line 68 of file DeclGroup.h.
| clang::DeclGroupRef::DeclGroupRef | ( | DeclGroup * | dg | ) | [inline, explicit] |
Definition at line 69 of file DeclGroup.h.
| iterator clang::DeclGroupRef::begin | ( | ) | [inline] |
Definition at line 103 of file DeclGroup.h.
References getDeclGroup(), and isSingleDecl().
Referenced by clang::Sema::ActOnAtEnd(), clang::DeclStmt::children(), clang::Sema::CodeCompleteObjCForCollection(), clang::DeclStmt::decl_begin(), clang::ento::ModelConsumer::HandleTopLevelDecl(), and clang::BackendConsumer::HandleTopLevelDecl().
| const_iterator clang::DeclGroupRef::begin | ( | ) | const [inline] |
Definition at line 116 of file DeclGroup.h.
References getDeclGroup(), and isSingleDecl().
| static DeclGroupRef clang::DeclGroupRef::Create | ( | ASTContext & | C, |
| Decl ** | Decls, | ||
| unsigned | NumDecls | ||
| ) | [inline, static] |
Definition at line 72 of file DeclGroup.h.
References clang::DeclGroup::Create(), and DeclGroupRef().
Referenced by clang::Sema::BuildDeclaratorGroup(), and clang::Sema::ConvertDeclToDeclGroup().
| iterator clang::DeclGroupRef::end | ( | ) | [inline] |
Definition at line 109 of file DeclGroup.h.
References getDeclGroup(), isSingleDecl(), and clang::DeclGroup::size().
Referenced by clang::Sema::ActOnAtEnd(), clang::DeclStmt::children(), clang::Sema::CodeCompleteObjCForCollection(), clang::DeclStmt::decl_end(), and clang::ento::ModelConsumer::HandleTopLevelDecl().
| const_iterator clang::DeclGroupRef::end | ( | ) | const [inline] |
Definition at line 122 of file DeclGroup.h.
References getDeclGroup(), isSingleDecl(), and clang::DeclGroup::size().
| void* clang::DeclGroupRef::getAsOpaquePtr | ( | ) | const [inline] |
Definition at line 129 of file DeclGroup.h.
Referenced by llvm::PointerLikeTypeTraits< clang::DeclGroupRef >::getAsVoidPointer().
| DeclGroup& clang::DeclGroupRef::getDeclGroup | ( | ) | [inline] |
Definition at line 95 of file DeclGroup.h.
References isDeclGroup().
Referenced by begin(), end(), and getDeclGroup().
| const DeclGroup& clang::DeclGroupRef::getDeclGroup | ( | ) | const [inline] |
Definition at line 99 of file DeclGroup.h.
References getDeclGroup().
| static DeclGroupRef clang::DeclGroupRef::getFromOpaquePtr | ( | void * | Ptr | ) | [inline, static] |
Definition at line 130 of file DeclGroup.h.
References X.
Referenced by llvm::PointerLikeTypeTraits< clang::DeclGroupRef >::getFromVoidPointer().
| Decl* clang::DeclGroupRef::getSingleDecl | ( | ) | [inline] |
Definition at line 87 of file DeclGroup.h.
References isSingleDecl().
Referenced by clang::Sema::ActOnForEachDeclStmt(), getSingleDecl(), and clang::DeclStmt::getSingleDecl().
| const Decl* clang::DeclGroupRef::getSingleDecl | ( | ) | const [inline] |
Definition at line 91 of file DeclGroup.h.
References getSingleDecl().
| bool clang::DeclGroupRef::isDeclGroup | ( | ) | const [inline] |
Definition at line 85 of file DeclGroup.h.
Referenced by getDeclGroup().
| bool clang::DeclGroupRef::isNull | ( | ) | const [inline] |
Definition at line 83 of file DeclGroup.h.
Referenced by clang::Sema::ActOnDeclStmt(), and clang::Sema::ActOnForEachDeclStmt().
| bool clang::DeclGroupRef::isSingleDecl | ( | ) | const [inline] |
Definition at line 84 of file DeclGroup.h.
Referenced by clang::Sema::ActOnForEachDeclStmt(), begin(), end(), getSingleDecl(), and clang::DeclStmt::isSingleDecl().