Skip to content
Snippets Groups Projects
Commit 406dac00 authored by Daniel Dunbar's avatar Daniel Dunbar
Browse files

[AST] Add DeclaratioName::getLoc{Start,End} for consistency.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152409 91177308-0d34-0410-b5e6-96231b3b80d8
parent 7b140266
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment