forked from OSchip/llvm-project
parent
dfd8daaf61
commit
49939c2914
|
@ -744,6 +744,8 @@ public:
|
|||
ObjCInterfaceDecl *const *Elts = 0,
|
||||
const SourceLocation *Locs = 0,
|
||||
unsigned nElts = 0);
|
||||
|
||||
virtual SourceRange getSourceRange() const;
|
||||
|
||||
typedef const ObjCClassRef* iterator;
|
||||
iterator begin() const { return ForwardDecls; }
|
||||
|
|
|
@ -614,6 +614,12 @@ void ObjCClassDecl::Destroy(ASTContext &C) {
|
|||
Decl::Destroy(C);
|
||||
}
|
||||
|
||||
SourceRange ObjCClassDecl::getSourceRange() const {
|
||||
// FIXME: We should include the semicolon
|
||||
assert(NumDecls);
|
||||
return SourceRange(getLocation(), ForwardDecls[NumDecls-1].getLocation());
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// ObjCForwardProtocolDecl
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
Loading…
Reference in New Issue