clang 24.0.0git
clang::DeclGroupRef Class Reference

#include "clang/AST/DeclGroup.h"

Public Types

using iterator = Decl **
using const_iterator = Decl * const *

Public Member Functions

 DeclGroupRef ()=default
 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)

Detailed Description

Definition at line 47 of file DeclGroup.h.

Member Typedef Documentation

◆ const_iterator

Definition at line 73 of file DeclGroup.h.

◆ iterator

Definition at line 72 of file DeclGroup.h.

Constructor & Destructor Documentation

◆ DeclGroupRef() [1/3]

clang::DeclGroupRef::DeclGroupRef ( )
default

◆ DeclGroupRef() [2/3]

clang::DeclGroupRef::DeclGroupRef ( Decl * d)
inlineexplicit

Definition at line 60 of file DeclGroup.h.

◆ DeclGroupRef() [3/3]

clang::DeclGroupRef::DeclGroupRef ( DeclGroup * dg)
inlineexplicit

Definition at line 61 of file DeclGroup.h.

Member Function Documentation

◆ begin() [1/2]

◆ begin() [2/2]

const_iterator clang::DeclGroupRef::begin ( ) const
inline

Definition at line 108 of file DeclGroup.h.

References getDeclGroup(), and isSingleDecl().

◆ Create()

◆ end() [1/2]

◆ end() [2/2]

const_iterator clang::DeclGroupRef::end ( ) const
inline

Definition at line 114 of file DeclGroup.h.

References getDeclGroup(), isSingleDecl(), and clang::DeclGroup::size().

◆ getAsOpaquePtr()

void * clang::DeclGroupRef::getAsOpaquePtr ( ) const
inline

◆ getDeclGroup() [1/2]

DeclGroup & clang::DeclGroupRef::getDeclGroup ( )
inline

Definition at line 87 of file DeclGroup.h.

References isDeclGroup().

Referenced by begin(), begin(), end(), end(), and getDeclGroup().

◆ getDeclGroup() [2/2]

const DeclGroup & clang::DeclGroupRef::getDeclGroup ( ) const
inline

Definition at line 91 of file DeclGroup.h.

References DeclGroupRef(), and getDeclGroup().

◆ getFromOpaquePtr()

DeclGroupRef clang::DeclGroupRef::getFromOpaquePtr ( void * Ptr)
inlinestatic

◆ getSingleDecl() [1/2]

◆ getSingleDecl() [2/2]

const Decl * clang::DeclGroupRef::getSingleDecl ( ) const
inline

Definition at line 83 of file DeclGroup.h.

References DeclGroupRef(), and getSingleDecl().

◆ isDeclGroup()

bool clang::DeclGroupRef::isDeclGroup ( ) const
inline

Definition at line 77 of file DeclGroup.h.

Referenced by getDeclGroup().

◆ isNull()

◆ isSingleDecl()


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