Index: cfe/trunk/include/clang/AST/Comment.h =================================================================== --- cfe/trunk/include/clang/AST/Comment.h +++ cfe/trunk/include/clang/AST/Comment.h @@ -215,16 +215,8 @@ SourceRange getSourceRange() const LLVM_READONLY { return Range; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); } SourceLocation getLocation() const LLVM_READONLY { return Loc; } Index: cfe/trunk/include/clang/AST/Decl.h =================================================================== --- cfe/trunk/include/clang/AST/Decl.h +++ cfe/trunk/include/clang/AST/Decl.h @@ -614,10 +614,6 @@ return SourceRange(LocStart, RBraceLoc); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return LocStart; } SourceLocation getRBraceLoc() const { return RBraceLoc; } void setLocStart(SourceLocation L) { LocStart = L; } @@ -739,10 +735,6 @@ SourceRange getSourceRange() const override LLVM_READONLY; - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return getOuterLocStart(); } @@ -2876,10 +2868,6 @@ const Type *getTypeForDecl() const { return TypeForDecl; } void setTypeForDecl(const Type *TD) { TypeForDecl = TD; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return LocStart; } void setLocStart(SourceLocation L) { LocStart = L; } SourceRange getSourceRange() const override LLVM_READONLY { @@ -4207,10 +4195,6 @@ SourceLocation getRBraceLoc() const { return RBraceLoc; } void setRBraceLoc(SourceLocation L) { RBraceLoc = L; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { if (RBraceLoc.isValid()) return RBraceLoc; Index: cfe/trunk/include/clang/AST/DeclBase.h =================================================================== --- cfe/trunk/include/clang/AST/DeclBase.h +++ cfe/trunk/include/clang/AST/DeclBase.h @@ -406,18 +406,10 @@ return SourceRange(getLocation(), getLocation()); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return getSourceRange().getBegin(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return getSourceRange().getEnd(); } Index: cfe/trunk/include/clang/AST/DeclCXX.h =================================================================== --- cfe/trunk/include/clang/AST/DeclCXX.h +++ cfe/trunk/include/clang/AST/DeclCXX.h @@ -233,15 +233,7 @@ /// Retrieves the source range that contains the entire base specifier. SourceRange getSourceRange() const LLVM_READONLY { return Range; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); } /// Get the location at which the base class type was written. @@ -2878,10 +2870,6 @@ LinkageSpecDeclBits.HasBraces = RBraceLoc.isValid(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { if (hasBraces()) return getRBraceLoc(); Index: cfe/trunk/include/clang/AST/DeclObjC.h =================================================================== --- cfe/trunk/include/clang/AST/DeclObjC.h +++ cfe/trunk/include/clang/AST/DeclObjC.h @@ -280,15 +280,7 @@ SourceLocation getDeclaratorEndLoc() const { return DeclEndLoc; } // Location information, modeled after the Stmt API. - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return getLocation(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY; SourceRange getSourceRange() const override LLVM_READONLY { return SourceRange(getLocation(), getEndLoc()); @@ -2809,10 +2801,6 @@ SourceRange getSourceRange() const override LLVM_READONLY; - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; } void setAtLoc(SourceLocation Loc) { AtLoc = Loc; } Index: cfe/trunk/include/clang/AST/DeclarationName.h =================================================================== --- cfe/trunk/include/clang/AST/DeclarationName.h +++ cfe/trunk/include/clang/AST/DeclarationName.h @@ -642,15 +642,6 @@ return SourceRange(getBeginLoc(), getEndLoc()); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } - - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { SourceLocation EndLoc = getEndLocPrivate(); return EndLoc.isValid() ? EndLoc : getBeginLoc(); Index: cfe/trunk/include/clang/AST/Expr.h =================================================================== --- cfe/trunk/include/clang/AST/Expr.h +++ cfe/trunk/include/clang/AST/Expr.h @@ -903,17 +903,9 @@ /// Retrieve the location of this expression. SourceLocation getLocation() const { return Loc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return SourceExpr ? SourceExpr->getBeginLoc() : Loc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return SourceExpr ? SourceExpr->getEndLoc() : Loc; } @@ -1071,15 +1063,7 @@ SourceLocation getLocation() const { return Loc; } void setLocation(SourceLocation L) { Loc = L; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY; - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY; /// Determine whether this declaration reference was preceded by a @@ -1257,15 +1241,7 @@ static StringRef getIdentTypeName(IdentType IT); static std::string ComputeName(IdentType IT, const Decl *CurrentDecl); - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return Loc; } static bool classof(const Stmt *T) { @@ -1354,15 +1330,7 @@ /// Returns a new empty integer literal. static IntegerLiteral *Create(const ASTContext &C, EmptyShell Empty); - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return Loc; } /// Retrieve the location of the literal. @@ -1401,15 +1369,7 @@ QualType type, SourceLocation l, unsigned Scale); - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return Loc; } /// \brief Retrieve the location of the literal. @@ -1463,15 +1423,7 @@ return static_cast(CharacterLiteralBits.Kind); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return Loc; } unsigned getValue() const { return Value; } @@ -1544,15 +1496,7 @@ SourceLocation getLocation() const { return Loc; } void setLocation(SourceLocation L) { Loc = L; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return Loc; } static bool classof(const Stmt *T) { @@ -1589,17 +1533,9 @@ Expr *getSubExpr() { return cast(Val); } void setSubExpr(Expr *E) { Val = E; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return Val->getBeginLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return Val->getEndLoc(); } static bool classof(const Stmt *T) { @@ -1773,15 +1709,7 @@ tokloc_iterator tokloc_begin() const { return TokLocs; } tokloc_iterator tokloc_end() const { return TokLocs + NumConcatenated; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return TokLocs[0]; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return TokLocs[NumConcatenated - 1]; } @@ -1821,15 +1749,7 @@ Expr *getSubExpr() { return cast(Val); } void setSubExpr(Expr *E) { Val = E; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return L; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return R; } /// Get the location of the left parentheses '('. @@ -1953,17 +1873,9 @@ /// the given unary opcode. static OverloadedOperatorKind getOverloadedOperator(Opcode Opc); - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return isPostfix() ? Val->getBeginLoc() : Loc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return isPostfix() ? Loc : Val->getEndLoc(); } @@ -2069,15 +1981,7 @@ /// contains the location of the period (if there is one) and the /// identifier. SourceRange getSourceRange() const LLVM_READONLY { return Range; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); } }; @@ -2177,15 +2081,7 @@ return NumExprs; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return OperatorLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; } static bool classof(const Stmt *T) { @@ -2281,15 +2177,7 @@ SourceLocation getRParenLoc() const { return RParenLoc; } void setRParenLoc(SourceLocation L) { RParenLoc = L; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return OpLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; } static bool classof(const Stmt *T) { @@ -2363,17 +2251,9 @@ return getRHS()->getType()->isIntegerType() ? getRHS() : getLHS(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return getLHS()->getBeginLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return RBracketLoc; } SourceLocation getRBracketLoc() const { return RBracketLoc; } @@ -2541,15 +2421,7 @@ SourceLocation getRParenLoc() const { return RParenLoc; } void setRParenLoc(SourceLocation L) { RParenLoc = L; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY; - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY; /// Return true if this is a call to __assume() or __builtin_assume() with @@ -2795,15 +2667,7 @@ SourceLocation getMemberLoc() const { return MemberLoc; } void setMemberLoc(SourceLocation L) { MemberLoc = L; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY; - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY; SourceLocation getExprLoc() const LLVM_READONLY { return MemberLoc; } @@ -2893,10 +2757,6 @@ TInfoAndScope.setPointer(tinfo); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { // FIXME: Init should never be null. if (!Init) @@ -2905,10 +2765,6 @@ return Init->getBeginLoc(); return LParenLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { // FIXME: Init should never be null. if (!Init) @@ -3103,17 +2959,9 @@ static ImplicitCastExpr *CreateEmpty(const ASTContext &Context, unsigned PathSize); - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return getSubExpr()->getBeginLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return getSubExpr()->getEndLoc(); } @@ -3220,15 +3068,7 @@ SourceLocation getRParenLoc() const { return RPLoc; } void setRParenLoc(SourceLocation L) { RPLoc = L; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return LPLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return getSubExpr()->getEndLoc(); } @@ -3308,17 +3148,9 @@ Expr *getRHS() const { return cast(SubExprs[RHS]); } void setRHS(Expr *E) { SubExprs[RHS] = E; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return getLHS()->getBeginLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return getRHS()->getEndLoc(); } @@ -3605,17 +3437,9 @@ Expr *getLHS() const { return cast(SubExprs[LHS]); } Expr *getRHS() const { return cast(SubExprs[RHS]); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return getCond()->getBeginLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return getRHS()->getEndLoc(); } @@ -3701,17 +3525,9 @@ return cast(SubExprs[RHS]); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return getCommon()->getBeginLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return getFalseExpr()->getEndLoc(); } @@ -3767,15 +3583,7 @@ SourceLocation getLabelLoc() const { return LabelLoc; } void setLabelLoc(SourceLocation L) { LabelLoc = L; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return AmpAmpLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return LabelLoc; } LabelDecl *getLabel() const { return Label; } @@ -3820,15 +3628,7 @@ const CompoundStmt *getSubStmt() const { return cast(SubStmt); } void setSubStmt(CompoundStmt *S) { SubStmt = S; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return LParenLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; } SourceLocation getLParenLoc() const { return LParenLoc; } @@ -3877,15 +3677,7 @@ SourceLocation getRParenLoc() const { return RParenLoc; } void setRParenLoc(SourceLocation L) { RParenLoc = L; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return BuiltinLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; } static bool classof(const Stmt *T) { @@ -3969,15 +3761,7 @@ /// getRParenLoc - Return the location of final right parenthesis. SourceLocation getRParenLoc() const { return RParenLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return BuiltinLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; } static bool classof(const Stmt *T) { @@ -4058,15 +3842,7 @@ SourceLocation getRParenLoc() const { return RParenLoc; } void setRParenLoc(SourceLocation L) { RParenLoc = L; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return BuiltinLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; } static bool classof(const Stmt *T) { @@ -4105,15 +3881,7 @@ SourceLocation getTokenLocation() const { return TokenLoc; } void setTokenLocation(SourceLocation L) { TokenLoc = L; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return TokenLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return TokenLoc; } static bool classof(const Stmt *T) { @@ -4165,15 +3933,7 @@ SourceLocation getRParenLoc() const { return RParenLoc; } void setRParenLoc(SourceLocation L) { RParenLoc = L; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return BuiltinLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; } static bool classof(const Stmt *T) { @@ -4407,15 +4167,7 @@ InitListExprBits.HadArrayRangeDesignator = ARD; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY; - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY; static bool classof(const Stmt *T) { @@ -4650,20 +4402,12 @@ return ArrayOrRange.Index; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { if (Kind == FieldDesignator) return getDotLoc().isInvalid()? getFieldLoc() : getDotLoc(); else return getLBracketLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return Kind == FieldDesignator ? getFieldLoc() : getRBracketLoc(); } @@ -4747,15 +4491,7 @@ SourceRange getDesignatorsSourceRange() const; - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY; - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY; static bool classof(const Stmt *T) { @@ -4797,15 +4533,7 @@ return T->getStmtClass() == NoInitExprClass; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return SourceLocation(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return SourceLocation(); } // Iterators @@ -4840,15 +4568,7 @@ explicit DesignatedInitUpdateExpr(EmptyShell Empty) : Expr(DesignatedInitUpdateExprClass, Empty) { } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY; - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY; static bool classof(const Stmt *T) { @@ -4923,17 +4643,9 @@ return S->getStmtClass() == ArrayInitLoopExprClass; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return getCommonExpr()->getBeginLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return getCommonExpr()->getEndLoc(); } @@ -4966,15 +4678,7 @@ return S->getStmtClass() == ArrayInitIndexExprClass; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return SourceLocation(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return SourceLocation(); } child_range children() { @@ -5010,15 +4714,7 @@ return T->getStmtClass() == ImplicitValueInitExprClass; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return SourceLocation(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return SourceLocation(); } // Iterators @@ -5063,15 +4759,7 @@ SourceLocation getLParenLoc() const { return LParenLoc; } SourceLocation getRParenLoc() const { return RParenLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return LParenLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; } static bool classof(const Stmt *T) { @@ -5195,15 +4883,7 @@ const Expr *getResultExpr() const { return getAssocExpr(getResultIndex()); } Expr *getResultExpr() { return getAssocExpr(getResultIndex()); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return GenericLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; } static bool classof(const Stmt *T) { @@ -5269,17 +4949,9 @@ /// aggregate Constant of ConstantInt(s). void getEncodedElementAccess(SmallVectorImpl &Elts) const; - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return getBase()->getBeginLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return AccessorLoc; } /// isArrow - Return true if the base expression is a pointer to vector, @@ -5322,17 +4994,9 @@ const Stmt *getBody() const; Stmt *getBody(); - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return getCaretLocation(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return getBody()->getEndLoc(); } @@ -5387,15 +5051,7 @@ /// getRParenLoc - Return the location of final right parenthesis. SourceLocation getRParenLoc() const { return RParenLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return BuiltinLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; } static bool classof(const Stmt *T) { @@ -5537,17 +5193,9 @@ return getSyntacticForm()->getExprLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return getSyntacticForm()->getBeginLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return getSyntacticForm()->getEndLoc(); } @@ -5672,15 +5320,7 @@ SourceLocation getBuiltinLoc() const { return BuiltinLoc; } SourceLocation getRParenLoc() const { return RParenLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return BuiltinLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; } static bool classof(const Stmt *T) { @@ -5734,15 +5374,7 @@ return const_child_range(const_child_iterator(), const_child_iterator()); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return SourceLocation(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return SourceLocation(); } static bool classof(const Stmt *T) { Index: cfe/trunk/include/clang/AST/ExprCXX.h =================================================================== --- cfe/trunk/include/clang/AST/ExprCXX.h +++ cfe/trunk/include/clang/AST/ExprCXX.h @@ -132,15 +132,7 @@ : getOperatorLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); } SourceRange getSourceRange() const { return Range; } @@ -286,15 +278,7 @@ /// Retrieve the location of the closing parenthesis. SourceLocation getRParenLoc() const { return RParenLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; } SourceRange getAngleBrackets() const LLVM_READONLY { return AngleBrackets; } @@ -540,20 +524,12 @@ return const_cast(this)->getCookedLiteral(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const { if (getLiteralOperatorKind() == LOK_Template) return getRParenLoc(); return getArg(0)->getBeginLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const { return getRParenLoc(); } /// Returns the location of a ud-suffix in the expression. @@ -587,15 +563,7 @@ bool getValue() const { return Value; } void setValue(bool V) { Value = V; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return Loc; } SourceLocation getLocation() const { return Loc; } @@ -626,15 +594,7 @@ explicit CXXNullPtrLiteralExpr(EmptyShell Empty) : Expr(CXXNullPtrLiteralExprClass, Empty) {} - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return Loc; } SourceLocation getLocation() const { return Loc; } @@ -671,18 +631,10 @@ Expr *getSubExpr() { return static_cast(SubExpr); } const Expr *getSubExpr() const { return static_cast(SubExpr); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return SubExpr->getBeginLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return SubExpr->getEndLoc(); } @@ -771,15 +723,7 @@ Operand = E; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); } SourceRange getSourceRange() const LLVM_READONLY { return Range; } void setSourceRange(SourceRange R) { Range = R; } @@ -834,10 +778,6 @@ return getBaseExpr() && getBaseExpr()->isImplicitCXXThis(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const { if (!isImplicitAccess()) return BaseExpr->getBeginLoc(); @@ -847,10 +787,6 @@ return MemberLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const { return getMemberLoc(); } child_range children() { @@ -911,18 +847,10 @@ Expr *getIdx() { return cast(SubExprs[IDX_EXPR]); } const Expr *getIdx() const { return cast(SubExprs[IDX_EXPR]); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return getBase()->getBeginLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return RBracketLoc; } SourceLocation getRBracketLoc() const { return RBracketLoc; } @@ -1005,15 +933,7 @@ void setUuidStr(StringRef US) { UuidStr = US; } StringRef getUuidStr() const { return UuidStr; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); } SourceRange getSourceRange() const LLVM_READONLY { return Range; } void setSourceRange(SourceRange R) { Range = R; } @@ -1062,15 +982,7 @@ SourceLocation getLocation() const { return Loc; } void setLocation(SourceLocation L) { Loc = L; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return Loc; } bool isImplicit() const { return Implicit; } @@ -1125,16 +1037,8 @@ /// this variable. bool isThrownVariableInScope() const { return IsThrownVariableInScope; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return ThrowLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { if (!getSubExpr()) return ThrowLoc; @@ -1204,15 +1108,7 @@ /// Default argument expressions have no representation in the /// source, so they have an empty source range. - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return SourceLocation(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return SourceLocation(); } SourceLocation getExprLoc() const LLVM_READONLY { return Loc; } @@ -1272,15 +1168,7 @@ return Field->getInClassInitializer(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return Loc; } static bool classof(const Stmt *T) { @@ -1353,18 +1241,10 @@ Expr *getSubExpr() { return cast(SubExpr); } void setSubExpr(Expr *E) { SubExpr = E; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return SubExpr->getBeginLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return SubExpr->getEndLoc(); } @@ -1520,15 +1400,7 @@ Args[Arg] = ArgExpr; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY; - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY; SourceRange getParenOrBraceRange() const { return ParenOrBraceRange; } void setParenOrBraceRange(SourceRange Range) { ParenOrBraceRange = Range; } @@ -1600,15 +1472,7 @@ bool inheritedFromVBase() const { return InheritedFromVirtualBase; } SourceLocation getLocation() const LLVM_READONLY { return Loc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return Loc; } static bool classof(const Stmt *T) { @@ -1671,15 +1535,7 @@ /// Determine whether this expression models list-initialization. bool isListInitialization() const { return LParenLoc.isInvalid(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY; - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY; static bool classof(const Stmt *T) { @@ -1723,15 +1579,7 @@ TypeSourceInfo *getTypeSourceInfo() const { return Type; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY; - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY; static bool classof(const Stmt *T) { @@ -1968,18 +1816,10 @@ return T->getStmtClass() == LambdaExprClass; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return IntroducerRange.getBegin(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return ClosingBrace; } child_range children() { @@ -2015,15 +1855,7 @@ SourceLocation getRParenLoc() const { return RParenLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY; - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; } static bool classof(const Stmt *T) { @@ -2243,10 +2075,6 @@ return SubExprs + Array + hasInitializer() + getNumPlacementArgs(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getStartLoc() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const { return Range.getBegin(); } SourceLocation getEndLoc() const { return Range.getEnd(); } @@ -2256,14 +2084,6 @@ return Range; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } static bool classof(const Stmt *T) { return T->getStmtClass() == CXXNewExprClass; @@ -2340,15 +2160,7 @@ /// be a pointer, return an invalid type. QualType getDestroyedType() const; - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return Argument->getEndLoc(); } @@ -2536,17 +2348,9 @@ DestroyedType = PseudoDestructorTypeStorage(Info); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return Base->getBeginLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY; static bool classof(const Stmt *T) { @@ -2628,15 +2432,7 @@ getNumArgs()); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; } static bool classof(const Stmt *T) { @@ -2697,15 +2493,7 @@ virtual ~ArrayTypeTraitExpr() = default; - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return RParen; } ArrayTypeTrait getTrait() const { return static_cast(ATT); } @@ -2769,15 +2557,7 @@ explicit ExpressionTraitExpr(EmptyShell Empty) : Expr(ExpressionTraitExprClass, Empty), ET(0), Value(false) {} - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return RParen; } ExpressionTrait getTrait() const { return static_cast(ET); } @@ -3069,20 +2849,12 @@ /// that was looked in to find these results. CXXRecordDecl *getNamingClass() const { return NamingClass; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { if (NestedNameSpecifierLoc l = getQualifierLoc()) return l.getBeginLoc(); return getNameInfo().getBeginLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { if (hasExplicitTemplateArgs()) return getRAngleLoc(); @@ -3229,18 +3001,10 @@ /// Note: getBeginLoc() is the start of the whole DependentScopeDeclRefExpr, /// and differs from getLocation().getStart(). - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return QualifierLoc.getBeginLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { if (hasExplicitTemplateArgs()) return getRAngleLoc(); @@ -3317,18 +3081,10 @@ /// when modifying an existing AST to preserve its invariants. void setSubExpr(Expr *E) { SubExpr = E; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return SubExpr->getBeginLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return SubExpr->getEndLoc(); } @@ -3458,16 +3214,8 @@ *(arg_begin() + I) = E; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY; - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { if (!RParenLoc.isValid() && NumArgs > 0) return getArg(NumArgs - 1)->getEndLoc(); @@ -3688,10 +3436,6 @@ return {getTemplateArgs(), getNumTemplateArgs()}; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { if (!isImplicitAccess()) return Base->getBeginLoc(); @@ -3700,10 +3444,6 @@ return MemberNameInfo.getBeginLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { if (hasExplicitTemplateArgs()) return getRAngleLoc(); @@ -3846,10 +3586,6 @@ // diagnosing a problem with this expression. SourceLocation getExprLoc() const LLVM_READONLY { return getMemberLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { if (!isImplicitAccess()) return Base->getBeginLoc(); @@ -3858,10 +3594,6 @@ return getMemberNameInfo().getBeginLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { if (hasExplicitTemplateArgs()) return getRAngleLoc(); @@ -3927,15 +3659,7 @@ Expr *getOperand() const { return static_cast(Operand); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); } SourceRange getSourceRange() const LLVM_READONLY { return Range; } @@ -4013,18 +3737,10 @@ return None; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return Pattern->getBeginLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return EllipsisLoc; } static bool classof(const Stmt *T) { @@ -4145,15 +3861,7 @@ return llvm::makeArrayRef(Args, Args + Length); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return OperatorLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; } static bool classof(const Stmt *T) { @@ -4197,15 +3905,7 @@ Param(param), Replacement(replacement), NameLoc(loc) {} SourceLocation getNameLoc() const { return NameLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return NameLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return NameLoc; } Expr *getReplacement() const { return cast(Replacement); } @@ -4269,15 +3969,7 @@ /// template arguments. TemplateArgument getArgumentPack() const; - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return NameLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return NameLoc; } static bool classof(const Stmt *T) { @@ -4350,15 +4042,7 @@ /// Get an expansion of the parameter pack by index. ParmVarDecl *getExpansion(unsigned I) const { return begin()[I]; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return NameLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return NameLoc; } static bool classof(const Stmt *T) { @@ -4470,18 +4154,10 @@ return getValueKind() == VK_LValue; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return getTemporary()->getBeginLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return getTemporary()->getEndLoc(); } @@ -4553,16 +4229,8 @@ SourceLocation getEllipsisLoc() const { return EllipsisLoc; } BinaryOperatorKind getOperator() const { return Opcode; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return LParenLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; } static bool classof(const Stmt *T) { @@ -4652,16 +4320,8 @@ return static_cast(SubExprs[SubExpr::Resume]); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return KeywordLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return getCommonExpr()->getEndLoc(); } @@ -4746,16 +4406,8 @@ SourceLocation getKeywordLoc() const { return KeywordLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return KeywordLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return getOperand()->getEndLoc(); } Index: cfe/trunk/include/clang/AST/ExprObjC.h =================================================================== --- cfe/trunk/include/clang/AST/ExprObjC.h +++ cfe/trunk/include/clang/AST/ExprObjC.h @@ -67,15 +67,7 @@ SourceLocation getAtLoc() const { return AtLoc; } void setAtLoc(SourceLocation L) { AtLoc = L; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return String->getEndLoc(); } // Iterators @@ -102,15 +94,7 @@ bool getValue() const { return Value; } void setValue(bool V) { Value = V; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return Loc; } SourceLocation getLocation() const { return Loc; } @@ -157,15 +141,7 @@ SourceLocation getAtLoc() const { return Range.getBegin(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); } SourceRange getSourceRange() const LLVM_READONLY { @@ -218,15 +194,7 @@ static ObjCArrayLiteral *CreateEmpty(const ASTContext &C, unsigned NumElements); - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); } SourceRange getSourceRange() const LLVM_READONLY { return Range; } @@ -391,15 +359,7 @@ return DictWithObjectsMethod; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); } SourceRange getSourceRange() const LLVM_READONLY { return Range; } @@ -452,15 +412,7 @@ EncodedType = EncType; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; } // Iterators @@ -495,15 +447,7 @@ void setAtLoc(SourceLocation L) { AtLoc = L; } void setRParenLoc(SourceLocation L) { RParenLoc = L; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; } /// getNumArgs - Return the number of actual arguments to this call. @@ -552,15 +496,7 @@ void setAtLoc(SourceLocation L) { AtLoc = L; } void setRParenLoc(SourceLocation L) { RParenLoc = L; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; } // Iterators @@ -620,17 +556,9 @@ SourceLocation getLocation() const { return Loc; } void setLocation(SourceLocation L) { Loc = L; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return isFreeIvar() ? Loc : getBase()->getBeginLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return Loc; } SourceLocation getOpLoc() const { return OpLoc; } @@ -814,19 +742,11 @@ /// Determine the type of the base, regardless of the kind of receiver. QualType getReceiverType(const ASTContext &ctx) const; - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return isObjectReceiver() ? getBase()->getBeginLoc() : getReceiverLocation(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return IdLoc; } // Iterators @@ -919,18 +839,10 @@ SourceLocation getRBracket() const { return RBracket; } void setRBracket(SourceLocation RB) { RBracket = RB; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return SubExprs[BASE]->getBeginLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return RBracket; } Expr *getBaseExpr() const { return cast(SubExprs[BASE]); } @@ -1484,15 +1396,7 @@ RBracLoc = R.getEnd(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return LBracLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return RBracLoc; } // Iterators @@ -1569,10 +1473,6 @@ SourceLocation getOpLoc() const { return OpLoc; } void setOpLoc(SourceLocation L) { OpLoc = L; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return getBase()->getBeginLoc(); } @@ -1581,10 +1481,6 @@ return getBase()->getEndLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return IsaMemberLoc; } SourceLocation getExprLoc() const LLVM_READONLY { return IsaMemberLoc; } @@ -1654,17 +1550,9 @@ child_range children() { return child_range(&Operand, &Operand+1); } // Source locations are determined by the subexpression. - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return Operand->getBeginLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return Operand->getEndLoc(); } @@ -1726,16 +1614,8 @@ /// The location of the bridge keyword. SourceLocation getBridgeKeywordLoc() const { return BridgeKeywordLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return LParenLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return getSubExpr()->getEndLoc(); } @@ -1774,15 +1654,7 @@ explicit ObjCAvailabilityCheckExpr(EmptyShell Shell) : Expr(ObjCAvailabilityCheckExprClass, Shell) {} - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const { return AtLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const { return RParen; } SourceRange getSourceRange() const { return {AtLoc, RParen}; } Index: cfe/trunk/include/clang/AST/ExprOpenMP.h =================================================================== --- cfe/trunk/include/clang/AST/ExprOpenMP.h +++ cfe/trunk/include/clang/AST/ExprOpenMP.h @@ -101,17 +101,9 @@ /// Set length of the array section. void setLength(Expr *E) { SubExprs[LENGTH] = E; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return getBase()->getBeginLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return RBracketLoc; } SourceLocation getColonLoc() const { return ColonLoc; } Index: cfe/trunk/include/clang/AST/OpenMPClause.h =================================================================== --- cfe/trunk/include/clang/AST/OpenMPClause.h +++ cfe/trunk/include/clang/AST/OpenMPClause.h @@ -64,17 +64,9 @@ public: /// Returns the starting location of the clause. - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const { return StartLoc; } /// Returns the ending location of the clause. - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const { return EndLoc; } /// Sets the starting location of the clause. Index: cfe/trunk/include/clang/AST/RawCommentList.h =================================================================== --- cfe/trunk/include/clang/AST/RawCommentList.h +++ cfe/trunk/include/clang/AST/RawCommentList.h @@ -101,15 +101,7 @@ } SourceRange getSourceRange() const LLVM_READONLY { return Range; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); } const char *getBriefText(const ASTContext &Context) const { Index: cfe/trunk/include/clang/AST/Stmt.h =================================================================== --- cfe/trunk/include/clang/AST/Stmt.h +++ cfe/trunk/include/clang/AST/Stmt.h @@ -398,15 +398,7 @@ /// value objects created/interpreted by SourceManager. We assume AST /// clients will have a pointer to the respective SourceManager. SourceRange getSourceRange() const LLVM_READONLY; - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY; - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY; // global temp stats (until we have a per-module visitor) @@ -530,23 +522,11 @@ DeclGroupRef getDeclGroup() { return DG; } void setDeclGroup(DeclGroupRef DGR) { DG = DGR; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getStartLoc() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } void setStartLoc(SourceLocation L) { StartLoc = L; } SourceLocation getEndLoc() const { return EndLoc; } void setEndLoc(SourceLocation L) { EndLoc = L; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return StartLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return EndLoc; - } static bool classof(const Stmt *T) { return T->getStmtClass() == DeclStmtClass; @@ -613,15 +593,7 @@ bool hasLeadingEmptyMacro() const { return HasLeadingEmptyMacro; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return SemiLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return SemiLoc; } static bool classof(const Stmt *T) { @@ -721,15 +693,7 @@ return const_reverse_body_iterator(body_begin()); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return LBraceLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return RBraceLoc; } SourceLocation getLBracLoc() const { return LBraceLoc; } @@ -778,15 +742,7 @@ return const_cast(this)->getSubStmt(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return KeywordLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY; static bool classof(const Stmt *T) { @@ -839,16 +795,8 @@ void setLHS(Expr *Val) { SubExprs[LHS] = reinterpret_cast(Val); } void setRHS(Expr *Val) { SubExprs[RHS] = reinterpret_cast(Val); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return KeywordLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { // Handle deeply nested case statements with iteration instead of recursion. const CaseStmt *CS = this; @@ -888,15 +836,7 @@ SourceLocation getColonLoc() const { return ColonLoc; } void setColonLoc(SourceLocation L) { ColonLoc = L; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return KeywordLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return SubStmt->getEndLoc(); } @@ -942,15 +882,7 @@ void setIdentLoc(SourceLocation L) { IdentLoc = L; } void setSubStmt(Stmt *SS) { SubStmt = SS; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return IdentLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return SubStmt->getEndLoc(); } @@ -1007,15 +939,7 @@ Stmt *getSubStmt() { return SubStmt; } const Stmt *getSubStmt() const { return SubStmt; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return AttrLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return SubStmt->getEndLoc(); } @@ -1085,16 +1009,8 @@ bool isObjCAvailabilityCheck() const; - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return IfLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { if (SubExprs[ELSE]) return SubExprs[ELSE]->getEndLoc(); @@ -1188,16 +1104,8 @@ /// have been explicitly covered. bool isAllEnumCasesCovered() const { return FirstCase.getInt(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return SwitchLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return SubExprs[BODY] ? SubExprs[BODY]->getEndLoc() : SubExprs[COND]->getEndLoc(); @@ -1253,16 +1161,8 @@ SourceLocation getWhileLoc() const { return WhileLoc; } void setWhileLoc(SourceLocation L) { WhileLoc = L; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return WhileLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return SubExprs[BODY]->getEndLoc(); } @@ -1311,15 +1211,7 @@ SourceLocation getRParenLoc() const { return RParenLoc; } void setRParenLoc(SourceLocation L) { RParenLoc = L; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return DoLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; } static bool classof(const Stmt *T) { @@ -1389,16 +1281,8 @@ SourceLocation getRParenLoc() const { return RParenLoc; } void setRParenLoc(SourceLocation L) { RParenLoc = L; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return ForLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return SubExprs[BODY]->getEndLoc(); } @@ -1434,15 +1318,7 @@ SourceLocation getLabelLoc() const { return LabelLoc; } void setLabelLoc(SourceLocation L) { LabelLoc = L; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return GotoLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return LabelLoc; } static bool classof(const Stmt *T) { @@ -1487,15 +1363,7 @@ return const_cast(this)->getConstantTarget(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return GotoLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return Target->getEndLoc(); } static bool classof(const Stmt *T) { @@ -1519,15 +1387,7 @@ SourceLocation getContinueLoc() const { return ContinueLoc; } void setContinueLoc(SourceLocation L) { ContinueLoc = L; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return ContinueLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return ContinueLoc; } static bool classof(const Stmt *T) { @@ -1556,15 +1416,7 @@ SourceLocation getBreakLoc() const { return BreakLoc; } void setBreakLoc(SourceLocation L) { BreakLoc = L; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return BreakLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return BreakLoc; } static bool classof(const Stmt *T) { @@ -1615,16 +1467,8 @@ const VarDecl *getNRVOCandidate() const { return NRVOCandidate; } void setNRVOCandidate(const VarDecl *Var) { NRVOCandidate = Var; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return RetLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return RetExpr ? RetExpr->getEndLoc() : RetLoc; } @@ -1680,15 +1524,7 @@ bool isVolatile() const { return IsVolatile; } void setVolatile(bool V) { IsVolatile = V; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return {}; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return {}; } //===--- Asm String Analysis ---===// @@ -1970,15 +1806,7 @@ return Clobbers[i]; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return AsmLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; } static bool classof(const Stmt *T) { @@ -2076,15 +1904,7 @@ ArrayRef Exprs, ArrayRef Clobbers); public: - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return AsmLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } static bool classof(const Stmt *T) { return T->getStmtClass() == MSAsmStmtClass; @@ -2113,15 +1933,7 @@ Expr *FilterExpr, Stmt *Block); - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return getExceptLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getExceptLoc() const { return Loc; } SourceLocation getEndLoc() const { return getBlock()->getEndLoc(); } @@ -2158,15 +1970,7 @@ SourceLocation FinallyLoc, Stmt *Block); - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return getFinallyLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getFinallyLoc() const { return Loc; } SourceLocation getEndLoc() const { return Block->getEndLoc(); } @@ -2204,15 +2008,7 @@ SourceLocation TryLoc, Stmt *TryBlock, Stmt *Handler); - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return getTryLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getTryLoc() const { return TryLoc; } SourceLocation getEndLoc() const { return Children[HANDLER]->getEndLoc(); } @@ -2252,15 +2048,7 @@ SourceLocation getLeaveLoc() const { return LeaveLoc; } void setLeaveLoc(SourceLocation L) { LeaveLoc = L; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return LeaveLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return LeaveLoc; } static bool classof(const Stmt *T) { @@ -2474,18 +2262,10 @@ return capture_init_begin() + NumCaptures; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return getCapturedStmt()->getBeginLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return getCapturedStmt()->getEndLoc(); } Index: cfe/trunk/include/clang/AST/StmtCXX.h =================================================================== --- cfe/trunk/include/clang/AST/StmtCXX.h +++ cfe/trunk/include/clang/AST/StmtCXX.h @@ -41,15 +41,7 @@ CXXCatchStmt(EmptyShell Empty) : Stmt(CXXCatchStmtClass), ExceptionDecl(nullptr), HandlerBlock(nullptr) {} - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return CatchLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return HandlerBlock->getEndLoc(); } @@ -94,15 +86,7 @@ static CXXTryStmt *Create(const ASTContext &C, EmptyShell Empty, unsigned numHandlers); - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return getTryLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getTryLoc() const { return TryLoc; } SourceLocation getEndLoc() const { @@ -209,15 +193,7 @@ SourceLocation getColonLoc() const { return ColonLoc; } SourceLocation getRParenLoc() const { return RParenLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return ForLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return SubExprs[BODY]->getEndLoc(); } @@ -303,15 +279,7 @@ return reinterpret_cast(SubStmt); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return KeywordLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return SubStmt->getEndLoc(); } @@ -432,18 +400,10 @@ return {getStoredStmts() + SubStmt::FirstParamMove, NumParams}; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return getBody() ? getBody()->getBeginLoc() : getPromiseDecl()->getBeginLoc(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return getBody() ? getBody()->getEndLoc() : getPromiseDecl()->getEndLoc(); } @@ -505,15 +465,7 @@ bool isImplicit() const { return IsImplicit; } void setIsImplicit(bool value = true) { IsImplicit = value; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return CoreturnLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return getOperand() ? getOperand()->getEndLoc() : getBeginLoc(); } Index: cfe/trunk/include/clang/AST/StmtObjC.h =================================================================== --- cfe/trunk/include/clang/AST/StmtObjC.h +++ cfe/trunk/include/clang/AST/StmtObjC.h @@ -55,15 +55,7 @@ SourceLocation getRParenLoc() const { return RParenLoc; } void setRParenLoc(SourceLocation Loc) { RParenLoc = Loc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return ForLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return SubExprs[BODY]->getEndLoc(); } @@ -112,15 +104,7 @@ SourceLocation getRParenLoc() const { return RParenLoc; } void setRParenLoc(SourceLocation Loc) { RParenLoc = Loc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return AtCatchLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return Body->getEndLoc(); } bool hasEllipsis() const { return getCatchParamDecl() == nullptr; } @@ -149,15 +133,7 @@ Stmt *getFinallyBody() { return AtFinallyStmt; } void setFinallyBody(Stmt *S) { AtFinallyStmt = S; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return AtFinallyLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return AtFinallyStmt->getEndLoc(); } @@ -262,15 +238,7 @@ getStmts()[1 + NumCatchStmts] = S; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return AtTryLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY; static bool classof(const Stmt *T) { @@ -327,15 +295,7 @@ } void setSynchExpr(Stmt *S) { SubStmts[SYNC_EXPR] = S; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return AtSynchronizedLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return getSynchBody()->getEndLoc(); } @@ -369,15 +329,7 @@ SourceLocation getThrowLoc() const LLVM_READONLY { return AtThrowLoc; } void setThrowLoc(SourceLocation Loc) { AtThrowLoc = Loc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return AtThrowLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return Throw ? Throw->getEndLoc() : AtThrowLoc; } @@ -405,15 +357,7 @@ Stmt *getSubStmt() { return SubStmt; } void setSubStmt(Stmt *S) { SubStmt = S; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return SubStmt->getEndLoc(); } Index: cfe/trunk/include/clang/AST/StmtOpenMP.h =================================================================== --- cfe/trunk/include/clang/AST/StmtOpenMP.h +++ cfe/trunk/include/clang/AST/StmtOpenMP.h @@ -165,16 +165,8 @@ } /// Returns starting location of directive kind. - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const { return StartLoc; } /// Returns ending location of directive. - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const { return EndLoc; } /// Set starting location of directive kind. Index: cfe/trunk/include/clang/AST/TypeLoc.h =================================================================== --- cfe/trunk/include/clang/AST/TypeLoc.h +++ cfe/trunk/include/clang/AST/TypeLoc.h @@ -152,14 +152,6 @@ return SourceRange(getBeginLoc(), getEndLoc()); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } /// Get the local source range. SourceRange getLocalSourceRange() const { Index: cfe/trunk/include/clang/Analysis/CloneDetection.h =================================================================== --- cfe/trunk/include/clang/Analysis/CloneDetection.h +++ cfe/trunk/include/clang/Analysis/CloneDetection.h @@ -122,10 +122,6 @@ /// Returns the start sourcelocation of the first statement in this sequence. /// /// This method should only be called on a non-empty StmtSequence object. - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getStartLoc() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const; /// Returns the end sourcelocation of the last statement in this sequence. Index: cfe/trunk/include/clang/Sema/DeclSpec.h =================================================================== --- cfe/trunk/include/clang/Sema/DeclSpec.h +++ cfe/trunk/include/clang/Sema/DeclSpec.h @@ -505,15 +505,7 @@ const CXXScopeSpec &getTypeSpecScope() const { return TypeScope; } SourceRange getSourceRange() const LLVM_READONLY { return Range; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); } SourceLocation getTypeSpecWidthLoc() const { return TSWRange.getBegin(); } @@ -1128,15 +1120,7 @@ SourceRange getSourceRange() const LLVM_READONLY { return SourceRange(StartLocation, EndLocation); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return StartLocation; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return EndLocation; } }; @@ -1886,15 +1870,7 @@ /// Get the source range that spans this declarator. SourceRange getSourceRange() const LLVM_READONLY { return Range; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return Range.getEnd(); } void SetSourceRange(SourceRange R) { Range = R; } Index: cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp =================================================================== --- cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp +++ cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp @@ -67,10 +67,6 @@ void setStartLoc(SourceLocation Loc) { LocStart = Loc; } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getStartLoc() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const { assert(LocStart && "Region has no start location"); return *LocStart; Index: cfe/trunk/lib/Sema/SemaChecking.cpp =================================================================== --- cfe/trunk/lib/Sema/SemaChecking.cpp +++ cfe/trunk/lib/Sema/SemaChecking.cpp @@ -6145,18 +6145,10 @@ StartToken, StartTokenByteOffset); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocStart() const LLVM_READONLY, - "Use getBeginLoc instead") { - return getBeginLoc(); - } SourceLocation getBeginLoc() const LLVM_READONLY { return FExpr->getBeginLoc().getLocWithOffset(Offset); } - LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY, - "Use getEndLoc instead") { - return getEndLoc(); - } SourceLocation getEndLoc() const LLVM_READONLY { return FExpr->getEndLoc(); } };