From d7b659b592e6aaa6659904d346a0cacfa18d1661 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Thu, 9 Aug 2018 21:08:08 +0000 Subject: Port getLocStart -> getBeginLoc Reviewers: teemperor! Subscribers: jholewinski, whisperity, jfb, cfe-commits Differential Revision: https://reviews.llvm.org/D50350 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@339385 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/Comment.h | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'include/clang/AST/Comment.h') diff --git a/include/clang/AST/Comment.h b/include/clang/AST/Comment.h index 030a5a89e4..2109012e14 100644 --- a/include/clang/AST/Comment.h +++ b/include/clang/AST/Comment.h @@ -349,8 +349,7 @@ public: } SourceRange getCommandNameRange() const { - return SourceRange(getLocStart().getLocWithOffset(-1), - getLocEnd()); + return SourceRange(getBeginLoc().getLocWithOffset(-1), getLocEnd()); } RenderKind getRenderKind() const { @@ -564,9 +563,9 @@ public: ParagraphCommentBits.IsWhitespaceValid = false; - setSourceRange(SourceRange(Content.front()->getLocStart(), + setSourceRange(SourceRange(Content.front()->getBeginLoc(), Content.back()->getLocEnd())); - setLocation(Content.front()->getLocStart()); + setLocation(Content.front()->getBeginLoc()); } static bool classof(const Comment *C) { @@ -660,13 +659,13 @@ public: } SourceLocation getCommandNameBeginLoc() const { - return getLocStart().getLocWithOffset(1); + return getBeginLoc().getLocWithOffset(1); } SourceRange getCommandNameRange(const CommandTraits &Traits) const { StringRef Name = getCommandName(Traits); return SourceRange(getCommandNameBeginLoc(), - getLocStart().getLocWithOffset(1 + Name.size())); + getBeginLoc().getLocWithOffset(1 + Name.size())); } unsigned getNumArgs() const { @@ -686,7 +685,7 @@ public: if (Args.size() > 0) { SourceLocation NewLocEnd = Args.back().Range.getEnd(); if (NewLocEnd.isValid()) - setSourceRange(SourceRange(getLocStart(), NewLocEnd)); + setSourceRange(SourceRange(getBeginLoc(), NewLocEnd)); } } @@ -702,7 +701,7 @@ public: Paragraph = PC; SourceLocation NewLocEnd = PC->getLocEnd(); if (NewLocEnd.isValid()) - setSourceRange(SourceRange(getLocStart(), NewLocEnd)); + setSourceRange(SourceRange(getBeginLoc(), NewLocEnd)); } CommandMarkerKind getCommandMarker() const LLVM_READONLY { @@ -1103,9 +1102,9 @@ public: if (Blocks.empty()) return; - setSourceRange(SourceRange(Blocks.front()->getLocStart(), - Blocks.back()->getLocEnd())); - setLocation(Blocks.front()->getLocStart()); + setSourceRange( + SourceRange(Blocks.front()->getBeginLoc(), Blocks.back()->getLocEnd())); + setLocation(Blocks.front()->getBeginLoc()); } static bool classof(const Comment *C) { -- cgit v1.2.1