diff options
author | Stephen Kelly <steveire@gmail.com> | 2018-08-09 21:09:38 +0000 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2018-08-09 21:09:38 +0000 |
commit | 1c301dcbc4e590d6706c5201892ed971a5be8945 (patch) | |
tree | 696062f06ef2f808547a028590cefaf9d5235cc5 /clang/lib/AST/Expr.cpp | |
parent | f2ceec4811c3587056344dd5ef8d819261e256ad (diff) | |
download | bcm5719-llvm-1c301dcbc4e590d6706c5201892ed971a5be8945.tar.gz bcm5719-llvm-1c301dcbc4e590d6706c5201892ed971a5be8945.zip |
Port getLocEnd -> getEndLoc
Reviewers: teemperor!
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D50351
llvm-svn: 339386
Diffstat (limited to 'clang/lib/AST/Expr.cpp')
-rw-r--r-- | clang/lib/AST/Expr.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp index c1fbebd477c..651981374d4 100644 --- a/clang/lib/AST/Expr.cpp +++ b/clang/lib/AST/Expr.cpp @@ -192,7 +192,7 @@ bool Expr::isKnownToHaveBooleanValue() const { // Amusing macro metaprogramming hack: check whether a class provides // a more specific implementation of getExprLoc(). // -// See also Stmt.cpp:{getBeginLoc(),getLocEnd()}. +// See also Stmt.cpp:{getBeginLoc(),getEndLoc()}. namespace { /// This implementation is used when a class provides a custom /// implementation of getExprLoc. @@ -455,7 +455,7 @@ SourceLocation DeclRefExpr::getBeginLoc() const { SourceLocation DeclRefExpr::getEndLoc() const { if (hasExplicitTemplateArgs()) return getRAngleLoc(); - return getNameInfo().getLocEnd(); + return getNameInfo().getEndLoc(); } PredefinedExpr::PredefinedExpr(SourceLocation L, QualType FNTy, IdentType IT, @@ -1369,11 +1369,11 @@ SourceLocation CallExpr::getBeginLoc() const { } SourceLocation CallExpr::getEndLoc() const { if (isa<CXXOperatorCallExpr>(this)) - return cast<CXXOperatorCallExpr>(this)->getLocEnd(); + return cast<CXXOperatorCallExpr>(this)->getEndLoc(); SourceLocation end = getRParenLoc(); if (end.isInvalid() && getNumArgs() > 0 && getArg(getNumArgs() - 1)) - end = getArg(getNumArgs() - 1)->getLocEnd(); + end = getArg(getNumArgs() - 1)->getEndLoc(); return end; } @@ -1548,7 +1548,7 @@ SourceLocation MemberExpr::getEndLoc() const { if (hasExplicitTemplateArgs()) EndLoc = getRAngleLoc(); else if (EndLoc.isInvalid()) - EndLoc = getBase()->getLocEnd(); + EndLoc = getBase()->getEndLoc(); return EndLoc; } @@ -2059,7 +2059,7 @@ SourceLocation InitListExpr::getBeginLoc() const { SourceLocation InitListExpr::getEndLoc() const { if (InitListExpr *SyntacticForm = getSyntacticForm()) - return SyntacticForm->getLocEnd(); + return SyntacticForm->getEndLoc(); SourceLocation End = RBraceLoc; if (End.isInvalid()) { // Find the first non-null initializer from the end. @@ -2067,7 +2067,7 @@ SourceLocation InitListExpr::getEndLoc() const { E = InitExprs.rend(); I != E; ++I) { if (Stmt *S = *I) { - End = S->getLocEnd(); + End = S->getEndLoc(); break; } } @@ -2279,7 +2279,7 @@ bool Expr::isUnusedResultAWarning(const Expr *&WarnE, SourceLocation &Loc, if (unsigned NumArgs = CE->getNumArgs()) R2 = SourceRange(CE->getArg(0)->getBeginLoc(), - CE->getArg(NumArgs - 1)->getLocEnd()); + CE->getArg(NumArgs - 1)->getEndLoc()); return true; } } @@ -3867,7 +3867,7 @@ SourceRange DesignatedInitExpr::getDesignatorsSourceRange() const { if (size() == 1) return DIE->getDesignator(0)->getSourceRange(); return SourceRange(DIE->getDesignator(0)->getBeginLoc(), - DIE->getDesignator(size() - 1)->getLocEnd()); + DIE->getDesignator(size() - 1)->getEndLoc()); } SourceLocation DesignatedInitExpr::getBeginLoc() const { @@ -3886,7 +3886,7 @@ SourceLocation DesignatedInitExpr::getBeginLoc() const { } SourceLocation DesignatedInitExpr::getEndLoc() const { - return getInit()->getLocEnd(); + return getInit()->getEndLoc(); } Expr *DesignatedInitExpr::getArrayIndex(const Designator& D) const { @@ -3949,7 +3949,7 @@ SourceLocation DesignatedInitUpdateExpr::getBeginLoc() const { } SourceLocation DesignatedInitUpdateExpr::getEndLoc() const { - return getBase()->getLocEnd(); + return getBase()->getEndLoc(); } ParenListExpr::ParenListExpr(const ASTContext& C, SourceLocation lparenloc, |