/// getSourceRange - Retrieves the source range that contains the
/// entire base specifier.
SourceRange getSourceRange() const { return Range; }
+ SourceLocation getLocStart() const { return Range.getBegin(); }
+ SourceLocation getLocEnd() const { return Range.getEnd(); }
/// isVirtual - Determines whether the base class is a virtual base
/// class (or not).
SourceRange getSourceRange() const {
return SourceRange(getBeginLoc(), getEndLoc());
}
+ SourceLocation getLocStart() const { return getBeginLoc(); }
+ SourceLocation getLocEnd() const { return getEndLoc(); }
/// \brief Get the local source range.
SourceRange getLocalSourceRange() const {
const CXXScopeSpec &getTypeSpecScope() const { return TypeScope; }
const SourceRange &getSourceRange() const { return Range; }
+ SourceLocation getLocStart() const { return Range.getBegin(); }
+ SourceLocation getLocEnd() const { return Range.getEnd(); }
+
SourceLocation getTypeSpecWidthLoc() const { return TSWLoc; }
SourceLocation getTypeSpecComplexLoc() const { return TSCLoc; }
SourceLocation getTypeSpecSignLoc() const { return TSSLoc; }
SourceRange getSourceRange() const {
return SourceRange(StartLocation, EndLocation);
}
+ SourceLocation getLocStart() const { return StartLocation; }
+ SourceLocation getLocEnd() const { return EndLocation; }
};
/// CachedTokens - A set of tokens that has been cached for later
/// getSourceRange - Get the source range that spans this declarator.
const SourceRange &getSourceRange() const { return Range; }
+ SourceLocation getLocStart() const { return Range.getBegin(); }
+ SourceLocation getLocEnd() const { return Range.getEnd(); }
void SetSourceRange(SourceRange R) { Range = R; }
/// SetRangeBegin - Set the start of the source range to Loc, unless it's