HomeSort by relevance Sort by last modified time
    Searched defs:DeclGroup (Results 1 - 2 of 2) sorted by null

  /external/clang/lib/AST/
DeclGroup.cpp 1 //===--- DeclGroup.cpp - Classes for representing groups of Decls -*- C++ -*-==//
10 // This file defines the DeclGroup and DeclGroupRef classes.
14 #include "clang/AST/DeclGroup.h"
20 DeclGroup* DeclGroup::Create(ASTContext &C, Decl **Decls, unsigned NumDecls) {
21 assert(NumDecls > 1 && "Invalid DeclGroup");
22 unsigned Size = sizeof(DeclGroup) + sizeof(Decl*) * NumDecls;
23 void* Mem = C.Allocate(Size, llvm::AlignOf<DeclGroup>::Alignment);
24 new (Mem) DeclGroup(NumDecls, Decls);
25 return static_cast<DeclGroup*>(Mem)
    [all...]
  /external/clang/include/clang/AST/
DeclGroup.h 1 //===--- DeclGroup.h - Classes for representing groups of Decls -*- C++ -*-===//
10 // This file defines the DeclGroup, DeclGroupRef, and OwningDeclGroup classes.
24 class DeclGroup;
27 class DeclGroup {
36 DeclGroup() : NumDecls(0) {}
37 DeclGroup(unsigned numdecls, Decl** decls);
40 static DeclGroup *Create(ASTContext &C, Decl **Decls, unsigned NumDecls);
69 explicit DeclGroupRef(DeclGroup* dg)
77 return DeclGroupRef(DeclGroup::Create(C, Decls, NumDecls));
88 assert(isSingleDecl() && "Isn't a declgroup");
    [all...]

Completed in 1784 milliseconds