forked from OSchip/llvm-project
[AST] Add DeclaratioName::getLoc{Start,End} for consistency.
llvm-svn: 152409
This commit is contained in:
parent
7b93f636e0
commit
d863d31f4b
|
@ -515,6 +515,13 @@ public:
|
|||
SourceLocation EndLoc = getEndLoc();
|
||||
return SourceRange(BeginLoc, EndLoc.isValid() ? EndLoc : BeginLoc);
|
||||
}
|
||||
SourceLocation getLocStart() const {
|
||||
return getBeginLoc();
|
||||
}
|
||||
SourceLocation getLocEnd() const {
|
||||
SourceLocation EndLoc = getEndLoc();
|
||||
return EndLoc.isValid() ? EndLoc : getLocStart();
|
||||
}
|
||||
};
|
||||
|
||||
/// Insertion operator for diagnostics. This allows sending DeclarationName's
|
||||
|
|
Loading…
Reference in New Issue