forked from OSchip/llvm-project
parent
05334dad60
commit
20c9e24241
|
@ -1834,7 +1834,9 @@ public:
|
|||
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; }
|
||||
|
|
|
@ -1968,6 +1968,11 @@ unsigned FieldDecl::getFieldIndex() const {
|
|||
return index;
|
||||
}
|
||||
|
||||
SourceRange FieldDecl::getSourceRange() const {
|
||||
return SourceRange(getInnerLocStart(),
|
||||
isBitField() ? BitWidth->getLocEnd() : getLocation());
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// TagDecl Implementation
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
Loading…
Reference in New Issue