Searched defs:DeclGroup (Results 1 - 3 of 3) sorted by relevance

/external/clang/lib/AST/
H A DDeclGroup.cpp1 //===--- 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*>(Me
28 DeclGroup::DeclGroup(unsigned numdecls, Decl** decls) : NumDecls(numdecls) { function in class:DeclGroup
[all...]
/external/clang/include/clang/AST/
H A DDeclGroup.h1 //===--- 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 { class in namespace:clang
36 DeclGroup() : NumDecls(0) {} function in class:clang::DeclGroup
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));
95 DeclGroup
[all...]
/external/clang/unittests/Tooling/
H A DToolingTest.cpp12 #include "clang/AST/DeclGroup.h"
51 virtual bool HandleTopLevelDecl(clang::DeclGroupRef DeclGroup) { argument

Completed in 1102 milliseconds