forked from OSchip/llvm-project
parent
b3d04ede8c
commit
3f27d4e05a
|
@ -521,9 +521,7 @@ public:
|
|||
SourceLocation getEndLoc() const;
|
||||
/// getSourceRange - The range of the declaration name.
|
||||
SourceRange getSourceRange() const LLVM_READONLY {
|
||||
SourceLocation BeginLoc = getBeginLoc();
|
||||
SourceLocation EndLoc = getEndLoc();
|
||||
return SourceRange(BeginLoc, EndLoc.isValid() ? EndLoc : BeginLoc);
|
||||
return SourceRange(getLocStart(), getLocEnd());
|
||||
}
|
||||
SourceLocation getLocStart() const LLVM_READONLY {
|
||||
return getBeginLoc();
|
||||
|
|
Loading…
Reference in New Issue