RecordDecl *getParent() {
return cast<RecordDecl>(getDeclContext());
}
-
+
+ SourceRange getSourceRange() const;
+
// Implement isa/cast/dyncast/etc.
static bool classof(const Decl *D) { return classofKind(D->getKind()); }
static bool classof(const FieldDecl *D) { return true; }
return index;
}
+SourceRange FieldDecl::getSourceRange() const {
+ return SourceRange(getInnerLocStart(),
+ isBitField() ? BitWidth->getLocEnd() : getLocation());
+}
+
//===----------------------------------------------------------------------===//
// TagDecl Implementation
//===----------------------------------------------------------------------===//