diff options
author | Stephen Kelly <steveire@gmail.com> | 2018-08-09 21:08:08 +0000 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2018-08-09 21:08:08 +0000 |
commit | d7b659b592e6aaa6659904d346a0cacfa18d1661 (patch) | |
tree | e6b7f265e398995b32ffd8352dc00cd3c837f408 /include/clang/AST/Comment.h | |
parent | a7d278685d70b3cf693b12941cae4bba91d260d6 (diff) | |
download | clang-d7b659b592e6aaa6659904d346a0cacfa18d1661.tar.gz |
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
Diffstat (limited to 'include/clang/AST/Comment.h')
-rw-r--r-- | include/clang/AST/Comment.h | 21 |
1 files changed, 10 insertions, 11 deletions
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) { |