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; }
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; }
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();
}
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 {
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;
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();
}
/// 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.
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();
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());
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; }
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();
/// 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;
}
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
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) {
/// 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.
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.
return static_cast<CharacterKind>(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; }
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) {
Expr *getSubExpr() { return cast<Expr>(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) {
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];
}
Expr *getSubExpr() { return cast<Expr>(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 '('.
/// 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();
}
/// 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(); }
};
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) {
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) {
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; }
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
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; }
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)
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)
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();
}
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();
}
Expr *getRHS() const { return cast<Expr>(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();
}
Expr *getLHS() const { return cast<Expr>(SubExprs[LHS]); }
Expr *getRHS() const { return cast<Expr>(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();
}
return cast<Expr>(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();
}
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; }
const CompoundStmt *getSubStmt() const { return cast<CompoundStmt>(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; }
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) {
/// 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) {
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) {
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) {
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) {
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) {
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();
}
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) {
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
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) {
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();
}
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() {
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
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) {
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) {
/// aggregate Constant of ConstantInt(s).
void getEncodedElementAccess(SmallVectorImpl<uint32_t> &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,
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();
}
/// 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) {
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();
}
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) {
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) {
: 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; }
/// 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; }
return const_cast<UserDefinedLiteral*>(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.
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; }
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; }
Expr *getSubExpr() { return static_cast<Expr*>(SubExpr); }
const Expr *getSubExpr() const { return static_cast<const Expr*>(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();
}
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; }
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();
return MemberLoc;
}
- LLVM_ATTRIBUTE_DEPRECATED(SourceLocation getLocEnd() const LLVM_READONLY,
- "Use getEndLoc instead") {
- return getEndLoc();
- }
SourceLocation getEndLoc() const { return getMemberLoc(); }
child_range children() {
Expr *getIdx() { return cast<Expr>(SubExprs[IDX_EXPR]); }
const Expr *getIdx() const { return cast<Expr>(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; }
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; }
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; }
/// 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;
/// 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; }
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) {
Expr *getSubExpr() { return cast<Expr>(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();
}
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; }
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) {
/// 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) {
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) {
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() {
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) {
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(); }
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;
/// 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();
}
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) {
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) {
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<ArrayTypeTrait>(ATT); }
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<ExpressionTrait>(ET); }
/// 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();
/// 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();
/// 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();
}
*(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();
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();
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();
// 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();
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();
Expr *getOperand() const { return static_cast<Expr*>(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; }
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) {
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) {
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<Expr>(Replacement); }
/// 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) {
/// 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) {
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();
}
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) {
return static_cast<Expr*>(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();
}
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();
}
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
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; }
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 {
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; }
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; }
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
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.
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
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; }
/// 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
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<Expr>(SubExprs[BASE]); }
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
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();
}
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; }
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();
}
/// 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();
}
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}; }
/// 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; }
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.
}
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 {
/// 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)
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;
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) {
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; }
return const_cast<SwitchCase*>(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) {
void setLHS(Expr *Val) { SubExprs[LHS] = reinterpret_cast<Stmt*>(Val); }
void setRHS(Expr *Val) { SubExprs[RHS] = reinterpret_cast<Stmt*>(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;
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();
}
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();
}
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();
}
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();
/// 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();
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();
}
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) {
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();
}
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) {
return const_cast<IndirectGotoStmt*>(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) {
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) {
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) {
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;
}
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 ---===//
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) {
ArrayRef<Expr*> Exprs, ArrayRef<StringRef> 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;
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(); }
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(); }
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(); }
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) {
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();
}
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();
}
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 {
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();
}
return reinterpret_cast<CompoundStmt *>(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();
}
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();
}
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();
}
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();
}
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; }
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();
}
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) {
}
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();
}
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;
}
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();
}
}
/// 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.
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 {
/// 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.
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(); }
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; }
};
/// 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; }
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;
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(); }
};