Deleted Added
full compact
DeclGroup.h (208954) DeclGroup.h (212904)
1//===--- DeclGroup.h - Classes for representing groups of Decls -*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 20 unchanged lines hidden (view full) ---

29 unsigned NumDecls;
30
31private:
32 DeclGroup() : NumDecls(0) {}
33 DeclGroup(unsigned numdecls, Decl** decls);
34
35public:
36 static DeclGroup *Create(ASTContext &C, Decl **Decls, unsigned NumDecls);
1//===--- DeclGroup.h - Classes for representing groups of Decls -*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 20 unchanged lines hidden (view full) ---

29 unsigned NumDecls;
30
31private:
32 DeclGroup() : NumDecls(0) {}
33 DeclGroup(unsigned numdecls, Decl** decls);
34
35public:
36 static DeclGroup *Create(ASTContext &C, Decl **Decls, unsigned NumDecls);
37 void Destroy(ASTContext& C);
38
39 unsigned size() const { return NumDecls; }
40
41 Decl*& operator[](unsigned i) {
42 assert (i < NumDecls && "Out-of-bounds access.");
43 return *((Decl**) (this+1));
44 }
45

--- 107 unchanged lines hidden ---
37
38 unsigned size() const { return NumDecls; }
39
40 Decl*& operator[](unsigned i) {
41 assert (i < NumDecls && "Out-of-bounds access.");
42 return *((Decl**) (this+1));
43 }
44

--- 107 unchanged lines hidden ---