Lines Matching refs:DeclGroup
1 //===- DeclGroup.h - Classes for representing groups of Decls ---*- C++ -*-===//
9 // This file defines the DeclGroup, DeclGroupRef, and OwningDeclGroup classes.
25 class DeclGroup final : private llvm::TrailingObjects<DeclGroup, Decl *> {
30 DeclGroup() = default;
31 DeclGroup(unsigned numdecls, Decl** decls);
36 static DeclGroup *Create(ASTContext &C, Decl **Decls, unsigned NumDecls);
65 explicit DeclGroupRef(DeclGroup* dg)
73 return DeclGroupRef(DeclGroup::Create(C, Decls, NumDecls));
91 DeclGroup &getDeclGroup() {
93 return *((DeclGroup*)(reinterpret_cast<uintptr_t>(D) & ~Mask));
95 const DeclGroup &getDeclGroup() const {
108 DeclGroup &G = getDeclGroup();
121 const DeclGroup &G = getDeclGroup();