mirror of
https://github.com/intel/llvm.git
synced 2026-01-24 00:20:25 +08:00
[AST] Add DeclaratioName::getLoc{Start,End} for consistency.
llvm-svn: 152409
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user