mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 16:56:06 +00:00
Add getBeginLoc API to replace getLocStart
Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D50346 llvm-svn: 339372
This commit is contained in:
parent
c53078a1e3
commit
724e9e52a4
@ -215,9 +215,8 @@ public:
|
|||||||
|
|
||||||
SourceRange getSourceRange() const LLVM_READONLY { return Range; }
|
SourceRange getSourceRange() const LLVM_READONLY { return Range; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
return Range.getBegin();
|
SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
|
||||||
}
|
|
||||||
|
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY {
|
SourceLocation getLocEnd() const LLVM_READONLY {
|
||||||
return Range.getEnd();
|
return Range.getEnd();
|
||||||
|
@ -614,7 +614,8 @@ public:
|
|||||||
return SourceRange(LocStart, RBraceLoc);
|
return SourceRange(LocStart, RBraceLoc);
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return LocStart; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return LocStart; }
|
||||||
SourceLocation getRBraceLoc() const { return RBraceLoc; }
|
SourceLocation getRBraceLoc() const { return RBraceLoc; }
|
||||||
void setLocStart(SourceLocation L) { LocStart = L; }
|
void setLocStart(SourceLocation L) { LocStart = L; }
|
||||||
void setRBraceLoc(SourceLocation L) { RBraceLoc = L; }
|
void setRBraceLoc(SourceLocation L) { RBraceLoc = L; }
|
||||||
@ -735,7 +736,8 @@ public:
|
|||||||
|
|
||||||
SourceRange getSourceRange() const override LLVM_READONLY;
|
SourceRange getSourceRange() const override LLVM_READONLY;
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
return getOuterLocStart();
|
return getOuterLocStart();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2865,7 +2867,8 @@ public:
|
|||||||
const Type *getTypeForDecl() const { return TypeForDecl; }
|
const Type *getTypeForDecl() const { return TypeForDecl; }
|
||||||
void setTypeForDecl(const Type *TD) { TypeForDecl = TD; }
|
void setTypeForDecl(const Type *TD) { TypeForDecl = TD; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return LocStart; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return LocStart; }
|
||||||
void setLocStart(SourceLocation L) { LocStart = L; }
|
void setLocStart(SourceLocation L) { LocStart = L; }
|
||||||
SourceRange getSourceRange() const override LLVM_READONLY {
|
SourceRange getSourceRange() const override LLVM_READONLY {
|
||||||
if (LocStart.isValid())
|
if (LocStart.isValid())
|
||||||
|
@ -406,7 +406,8 @@ public:
|
|||||||
return SourceRange(getLocation(), getLocation());
|
return SourceRange(getLocation(), getLocation());
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
return getSourceRange().getBegin();
|
return getSourceRange().getBegin();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -233,7 +233,8 @@ public:
|
|||||||
|
|
||||||
/// Retrieves the source range that contains the entire base specifier.
|
/// Retrieves the source range that contains the entire base specifier.
|
||||||
SourceRange getSourceRange() const LLVM_READONLY { return Range; }
|
SourceRange getSourceRange() const LLVM_READONLY { return Range; }
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return Range.getBegin(); }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return Range.getEnd(); }
|
SourceLocation getLocEnd() const LLVM_READONLY { return Range.getEnd(); }
|
||||||
|
|
||||||
/// Get the location at which the base class type was written.
|
/// Get the location at which the base class type was written.
|
||||||
|
@ -280,7 +280,8 @@ public:
|
|||||||
SourceLocation getDeclaratorEndLoc() const { return DeclEndLoc; }
|
SourceLocation getDeclaratorEndLoc() const { return DeclEndLoc; }
|
||||||
|
|
||||||
// Location information, modeled after the Stmt API.
|
// Location information, modeled after the Stmt API.
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return getLocation(); }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return getLocation(); }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY;
|
SourceLocation getLocEnd() const LLVM_READONLY;
|
||||||
SourceRange getSourceRange() const override LLVM_READONLY {
|
SourceRange getSourceRange() const override LLVM_READONLY {
|
||||||
return SourceRange(getLocation(), getLocEnd());
|
return SourceRange(getLocation(), getLocEnd());
|
||||||
@ -2801,7 +2802,8 @@ public:
|
|||||||
|
|
||||||
SourceRange getSourceRange() const override LLVM_READONLY;
|
SourceRange getSourceRange() const override LLVM_READONLY;
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return AtLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; }
|
||||||
void setAtLoc(SourceLocation Loc) { AtLoc = Loc; }
|
void setAtLoc(SourceLocation Loc) { AtLoc = Loc; }
|
||||||
|
|
||||||
ObjCPropertyDecl *getPropertyDecl() const {
|
ObjCPropertyDecl *getPropertyDecl() const {
|
||||||
|
@ -645,9 +645,7 @@ public:
|
|||||||
return SourceRange(getLocStart(), getLocEnd());
|
return SourceRange(getLocStart(), getLocEnd());
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
return getBeginLoc();
|
|
||||||
}
|
|
||||||
|
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY {
|
SourceLocation getLocEnd() const LLVM_READONLY {
|
||||||
SourceLocation EndLoc = getEndLocPrivate();
|
SourceLocation EndLoc = getEndLocPrivate();
|
||||||
|
@ -904,7 +904,8 @@ public:
|
|||||||
/// Retrieve the location of this expression.
|
/// Retrieve the location of this expression.
|
||||||
SourceLocation getLocation() const { return Loc; }
|
SourceLocation getLocation() const { return Loc; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
return SourceExpr ? SourceExpr->getLocStart() : Loc;
|
return SourceExpr ? SourceExpr->getLocStart() : Loc;
|
||||||
}
|
}
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY {
|
SourceLocation getLocEnd() const LLVM_READONLY {
|
||||||
@ -1064,7 +1065,8 @@ public:
|
|||||||
|
|
||||||
SourceLocation getLocation() const { return Loc; }
|
SourceLocation getLocation() const { return Loc; }
|
||||||
void setLocation(SourceLocation L) { Loc = L; }
|
void setLocation(SourceLocation L) { Loc = L; }
|
||||||
SourceLocation getLocStart() const LLVM_READONLY;
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY;
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY;
|
SourceLocation getLocEnd() const LLVM_READONLY;
|
||||||
|
|
||||||
/// Determine whether this declaration reference was preceded by a
|
/// Determine whether this declaration reference was preceded by a
|
||||||
@ -1242,7 +1244,8 @@ public:
|
|||||||
static StringRef getIdentTypeName(IdentType IT);
|
static StringRef getIdentTypeName(IdentType IT);
|
||||||
static std::string ComputeName(IdentType IT, const Decl *CurrentDecl);
|
static std::string ComputeName(IdentType IT, const Decl *CurrentDecl);
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return Loc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return Loc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return Loc; }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -1331,7 +1334,8 @@ public:
|
|||||||
/// Returns a new empty integer literal.
|
/// Returns a new empty integer literal.
|
||||||
static IntegerLiteral *Create(const ASTContext &C, EmptyShell Empty);
|
static IntegerLiteral *Create(const ASTContext &C, EmptyShell Empty);
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return Loc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return Loc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return Loc; }
|
||||||
|
|
||||||
/// Retrieve the location of the literal.
|
/// Retrieve the location of the literal.
|
||||||
@ -1370,7 +1374,8 @@ class FixedPointLiteral : public Expr, public APIntStorage {
|
|||||||
QualType type, SourceLocation l,
|
QualType type, SourceLocation l,
|
||||||
unsigned Scale);
|
unsigned Scale);
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return Loc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return Loc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return Loc; }
|
||||||
|
|
||||||
/// \brief Retrieve the location of the literal.
|
/// \brief Retrieve the location of the literal.
|
||||||
@ -1424,7 +1429,8 @@ public:
|
|||||||
return static_cast<CharacterKind>(CharacterLiteralBits.Kind);
|
return static_cast<CharacterKind>(CharacterLiteralBits.Kind);
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return Loc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return Loc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return Loc; }
|
||||||
|
|
||||||
unsigned getValue() const { return Value; }
|
unsigned getValue() const { return Value; }
|
||||||
@ -1497,7 +1503,8 @@ public:
|
|||||||
SourceLocation getLocation() const { return Loc; }
|
SourceLocation getLocation() const { return Loc; }
|
||||||
void setLocation(SourceLocation L) { Loc = L; }
|
void setLocation(SourceLocation L) { Loc = L; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return Loc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return Loc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return Loc; }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -1534,7 +1541,10 @@ public:
|
|||||||
Expr *getSubExpr() { return cast<Expr>(Val); }
|
Expr *getSubExpr() { return cast<Expr>(Val); }
|
||||||
void setSubExpr(Expr *E) { Val = E; }
|
void setSubExpr(Expr *E) { Val = E; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return Val->getLocStart(); }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
|
return Val->getLocStart();
|
||||||
|
}
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return Val->getLocEnd(); }
|
SourceLocation getLocEnd() const LLVM_READONLY { return Val->getLocEnd(); }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -1708,7 +1718,8 @@ public:
|
|||||||
tokloc_iterator tokloc_begin() const { return TokLocs; }
|
tokloc_iterator tokloc_begin() const { return TokLocs; }
|
||||||
tokloc_iterator tokloc_end() const { return TokLocs + NumConcatenated; }
|
tokloc_iterator tokloc_end() const { return TokLocs + NumConcatenated; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return TokLocs[0]; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return TokLocs[0]; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY {
|
SourceLocation getLocEnd() const LLVM_READONLY {
|
||||||
return TokLocs[NumConcatenated - 1];
|
return TokLocs[NumConcatenated - 1];
|
||||||
}
|
}
|
||||||
@ -1748,7 +1759,8 @@ public:
|
|||||||
Expr *getSubExpr() { return cast<Expr>(Val); }
|
Expr *getSubExpr() { return cast<Expr>(Val); }
|
||||||
void setSubExpr(Expr *E) { Val = E; }
|
void setSubExpr(Expr *E) { Val = E; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return L; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return L; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return R; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return R; }
|
||||||
|
|
||||||
/// Get the location of the left parentheses '('.
|
/// Get the location of the left parentheses '('.
|
||||||
@ -1872,7 +1884,8 @@ public:
|
|||||||
/// the given unary opcode.
|
/// the given unary opcode.
|
||||||
static OverloadedOperatorKind getOverloadedOperator(Opcode Opc);
|
static OverloadedOperatorKind getOverloadedOperator(Opcode Opc);
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
return isPostfix() ? Val->getLocStart() : Loc;
|
return isPostfix() ? Val->getLocStart() : Loc;
|
||||||
}
|
}
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY {
|
SourceLocation getLocEnd() const LLVM_READONLY {
|
||||||
@ -1980,7 +1993,8 @@ public:
|
|||||||
/// contains the location of the period (if there is one) and the
|
/// contains the location of the period (if there is one) and the
|
||||||
/// identifier.
|
/// identifier.
|
||||||
SourceRange getSourceRange() const LLVM_READONLY { return Range; }
|
SourceRange getSourceRange() const LLVM_READONLY { return Range; }
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return Range.getBegin(); }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return Range.getEnd(); }
|
SourceLocation getLocEnd() const LLVM_READONLY { return Range.getEnd(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -2080,7 +2094,8 @@ public:
|
|||||||
return NumExprs;
|
return NumExprs;
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return OperatorLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return OperatorLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -2176,7 +2191,8 @@ public:
|
|||||||
SourceLocation getRParenLoc() const { return RParenLoc; }
|
SourceLocation getRParenLoc() const { return RParenLoc; }
|
||||||
void setRParenLoc(SourceLocation L) { RParenLoc = L; }
|
void setRParenLoc(SourceLocation L) { RParenLoc = L; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return OpLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return OpLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -2250,7 +2266,8 @@ public:
|
|||||||
return getRHS()->getType()->isIntegerType() ? getRHS() : getLHS();
|
return getRHS()->getType()->isIntegerType() ? getRHS() : getLHS();
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
return getLHS()->getLocStart();
|
return getLHS()->getLocStart();
|
||||||
}
|
}
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return RBracketLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return RBracketLoc; }
|
||||||
@ -2420,7 +2437,8 @@ public:
|
|||||||
SourceLocation getRParenLoc() const { return RParenLoc; }
|
SourceLocation getRParenLoc() const { return RParenLoc; }
|
||||||
void setRParenLoc(SourceLocation L) { RParenLoc = L; }
|
void setRParenLoc(SourceLocation L) { RParenLoc = L; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY;
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY;
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY;
|
SourceLocation getLocEnd() const LLVM_READONLY;
|
||||||
|
|
||||||
/// Return true if this is a call to __assume() or __builtin_assume() with
|
/// Return true if this is a call to __assume() or __builtin_assume() with
|
||||||
@ -2666,7 +2684,8 @@ public:
|
|||||||
SourceLocation getMemberLoc() const { return MemberLoc; }
|
SourceLocation getMemberLoc() const { return MemberLoc; }
|
||||||
void setMemberLoc(SourceLocation L) { MemberLoc = L; }
|
void setMemberLoc(SourceLocation L) { MemberLoc = L; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY;
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY;
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY;
|
SourceLocation getLocEnd() const LLVM_READONLY;
|
||||||
|
|
||||||
SourceLocation getExprLoc() const LLVM_READONLY { return MemberLoc; }
|
SourceLocation getExprLoc() const LLVM_READONLY { return MemberLoc; }
|
||||||
@ -2756,7 +2775,8 @@ public:
|
|||||||
TInfoAndScope.setPointer(tinfo);
|
TInfoAndScope.setPointer(tinfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
// FIXME: Init should never be null.
|
// FIXME: Init should never be null.
|
||||||
if (!Init)
|
if (!Init)
|
||||||
return SourceLocation();
|
return SourceLocation();
|
||||||
@ -2958,7 +2978,8 @@ public:
|
|||||||
static ImplicitCastExpr *CreateEmpty(const ASTContext &Context,
|
static ImplicitCastExpr *CreateEmpty(const ASTContext &Context,
|
||||||
unsigned PathSize);
|
unsigned PathSize);
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
return getSubExpr()->getLocStart();
|
return getSubExpr()->getLocStart();
|
||||||
}
|
}
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY {
|
SourceLocation getLocEnd() const LLVM_READONLY {
|
||||||
@ -3067,7 +3088,8 @@ public:
|
|||||||
SourceLocation getRParenLoc() const { return RPLoc; }
|
SourceLocation getRParenLoc() const { return RPLoc; }
|
||||||
void setRParenLoc(SourceLocation L) { RPLoc = L; }
|
void setRParenLoc(SourceLocation L) { RPLoc = L; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return LPLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return LPLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY {
|
SourceLocation getLocEnd() const LLVM_READONLY {
|
||||||
return getSubExpr()->getLocEnd();
|
return getSubExpr()->getLocEnd();
|
||||||
}
|
}
|
||||||
@ -3147,7 +3169,8 @@ public:
|
|||||||
Expr *getRHS() const { return cast<Expr>(SubExprs[RHS]); }
|
Expr *getRHS() const { return cast<Expr>(SubExprs[RHS]); }
|
||||||
void setRHS(Expr *E) { SubExprs[RHS] = E; }
|
void setRHS(Expr *E) { SubExprs[RHS] = E; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
return getLHS()->getLocStart();
|
return getLHS()->getLocStart();
|
||||||
}
|
}
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY {
|
SourceLocation getLocEnd() const LLVM_READONLY {
|
||||||
@ -3430,7 +3453,8 @@ public:
|
|||||||
Expr *getLHS() const { return cast<Expr>(SubExprs[LHS]); }
|
Expr *getLHS() const { return cast<Expr>(SubExprs[LHS]); }
|
||||||
Expr *getRHS() const { return cast<Expr>(SubExprs[RHS]); }
|
Expr *getRHS() const { return cast<Expr>(SubExprs[RHS]); }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
return getCond()->getLocStart();
|
return getCond()->getLocStart();
|
||||||
}
|
}
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY {
|
SourceLocation getLocEnd() const LLVM_READONLY {
|
||||||
@ -3518,7 +3542,8 @@ public:
|
|||||||
return cast<Expr>(SubExprs[RHS]);
|
return cast<Expr>(SubExprs[RHS]);
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
return getCommon()->getLocStart();
|
return getCommon()->getLocStart();
|
||||||
}
|
}
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY {
|
SourceLocation getLocEnd() const LLVM_READONLY {
|
||||||
@ -3576,7 +3601,8 @@ public:
|
|||||||
SourceLocation getLabelLoc() const { return LabelLoc; }
|
SourceLocation getLabelLoc() const { return LabelLoc; }
|
||||||
void setLabelLoc(SourceLocation L) { LabelLoc = L; }
|
void setLabelLoc(SourceLocation L) { LabelLoc = L; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return AmpAmpLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return AmpAmpLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return LabelLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return LabelLoc; }
|
||||||
|
|
||||||
LabelDecl *getLabel() const { return Label; }
|
LabelDecl *getLabel() const { return Label; }
|
||||||
@ -3621,7 +3647,8 @@ public:
|
|||||||
const CompoundStmt *getSubStmt() const { return cast<CompoundStmt>(SubStmt); }
|
const CompoundStmt *getSubStmt() const { return cast<CompoundStmt>(SubStmt); }
|
||||||
void setSubStmt(CompoundStmt *S) { SubStmt = S; }
|
void setSubStmt(CompoundStmt *S) { SubStmt = S; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return LParenLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return LParenLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
||||||
|
|
||||||
SourceLocation getLParenLoc() const { return LParenLoc; }
|
SourceLocation getLParenLoc() const { return LParenLoc; }
|
||||||
@ -3670,7 +3697,8 @@ public:
|
|||||||
SourceLocation getRParenLoc() const { return RParenLoc; }
|
SourceLocation getRParenLoc() const { return RParenLoc; }
|
||||||
void setRParenLoc(SourceLocation L) { RParenLoc = L; }
|
void setRParenLoc(SourceLocation L) { RParenLoc = L; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return BuiltinLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return BuiltinLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -3754,7 +3782,8 @@ public:
|
|||||||
/// getRParenLoc - Return the location of final right parenthesis.
|
/// getRParenLoc - Return the location of final right parenthesis.
|
||||||
SourceLocation getRParenLoc() const { return RParenLoc; }
|
SourceLocation getRParenLoc() const { return RParenLoc; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return BuiltinLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return BuiltinLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -3835,7 +3864,8 @@ public:
|
|||||||
SourceLocation getRParenLoc() const { return RParenLoc; }
|
SourceLocation getRParenLoc() const { return RParenLoc; }
|
||||||
void setRParenLoc(SourceLocation L) { RParenLoc = L; }
|
void setRParenLoc(SourceLocation L) { RParenLoc = L; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return BuiltinLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return BuiltinLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -3874,7 +3904,8 @@ public:
|
|||||||
SourceLocation getTokenLocation() const { return TokenLoc; }
|
SourceLocation getTokenLocation() const { return TokenLoc; }
|
||||||
void setTokenLocation(SourceLocation L) { TokenLoc = L; }
|
void setTokenLocation(SourceLocation L) { TokenLoc = L; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return TokenLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return TokenLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return TokenLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return TokenLoc; }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -3926,7 +3957,8 @@ public:
|
|||||||
SourceLocation getRParenLoc() const { return RParenLoc; }
|
SourceLocation getRParenLoc() const { return RParenLoc; }
|
||||||
void setRParenLoc(SourceLocation L) { RParenLoc = L; }
|
void setRParenLoc(SourceLocation L) { RParenLoc = L; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return BuiltinLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return BuiltinLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -4160,7 +4192,8 @@ public:
|
|||||||
InitListExprBits.HadArrayRangeDesignator = ARD;
|
InitListExprBits.HadArrayRangeDesignator = ARD;
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY;
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY;
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY;
|
SourceLocation getLocEnd() const LLVM_READONLY;
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -4395,7 +4428,8 @@ public:
|
|||||||
return ArrayOrRange.Index;
|
return ArrayOrRange.Index;
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
if (Kind == FieldDesignator)
|
if (Kind == FieldDesignator)
|
||||||
return getDotLoc().isInvalid()? getFieldLoc() : getDotLoc();
|
return getDotLoc().isInvalid()? getFieldLoc() : getDotLoc();
|
||||||
else
|
else
|
||||||
@ -4484,7 +4518,8 @@ public:
|
|||||||
|
|
||||||
SourceRange getDesignatorsSourceRange() const;
|
SourceRange getDesignatorsSourceRange() const;
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY;
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY;
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY;
|
SourceLocation getLocEnd() const LLVM_READONLY;
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -4526,7 +4561,8 @@ public:
|
|||||||
return T->getStmtClass() == NoInitExprClass;
|
return T->getStmtClass() == NoInitExprClass;
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return SourceLocation(); }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return SourceLocation(); }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return SourceLocation(); }
|
SourceLocation getLocEnd() const LLVM_READONLY { return SourceLocation(); }
|
||||||
|
|
||||||
// Iterators
|
// Iterators
|
||||||
@ -4561,7 +4597,8 @@ public:
|
|||||||
explicit DesignatedInitUpdateExpr(EmptyShell Empty)
|
explicit DesignatedInitUpdateExpr(EmptyShell Empty)
|
||||||
: Expr(DesignatedInitUpdateExprClass, Empty) { }
|
: Expr(DesignatedInitUpdateExprClass, Empty) { }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY;
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY;
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY;
|
SourceLocation getLocEnd() const LLVM_READONLY;
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -4636,7 +4673,8 @@ public:
|
|||||||
return S->getStmtClass() == ArrayInitLoopExprClass;
|
return S->getStmtClass() == ArrayInitLoopExprClass;
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
return getCommonExpr()->getLocStart();
|
return getCommonExpr()->getLocStart();
|
||||||
}
|
}
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY {
|
SourceLocation getLocEnd() const LLVM_READONLY {
|
||||||
@ -4671,7 +4709,8 @@ public:
|
|||||||
return S->getStmtClass() == ArrayInitIndexExprClass;
|
return S->getStmtClass() == ArrayInitIndexExprClass;
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return SourceLocation(); }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return SourceLocation(); }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return SourceLocation(); }
|
SourceLocation getLocEnd() const LLVM_READONLY { return SourceLocation(); }
|
||||||
|
|
||||||
child_range children() {
|
child_range children() {
|
||||||
@ -4707,7 +4746,8 @@ public:
|
|||||||
return T->getStmtClass() == ImplicitValueInitExprClass;
|
return T->getStmtClass() == ImplicitValueInitExprClass;
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return SourceLocation(); }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return SourceLocation(); }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return SourceLocation(); }
|
SourceLocation getLocEnd() const LLVM_READONLY { return SourceLocation(); }
|
||||||
|
|
||||||
// Iterators
|
// Iterators
|
||||||
@ -4752,7 +4792,8 @@ public:
|
|||||||
SourceLocation getLParenLoc() const { return LParenLoc; }
|
SourceLocation getLParenLoc() const { return LParenLoc; }
|
||||||
SourceLocation getRParenLoc() const { return RParenLoc; }
|
SourceLocation getRParenLoc() const { return RParenLoc; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return LParenLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return LParenLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -4876,7 +4917,8 @@ public:
|
|||||||
const Expr *getResultExpr() const { return getAssocExpr(getResultIndex()); }
|
const Expr *getResultExpr() const { return getAssocExpr(getResultIndex()); }
|
||||||
Expr *getResultExpr() { return getAssocExpr(getResultIndex()); }
|
Expr *getResultExpr() { return getAssocExpr(getResultIndex()); }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return GenericLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return GenericLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -4942,7 +4984,8 @@ public:
|
|||||||
/// aggregate Constant of ConstantInt(s).
|
/// aggregate Constant of ConstantInt(s).
|
||||||
void getEncodedElementAccess(SmallVectorImpl<uint32_t> &Elts) const;
|
void getEncodedElementAccess(SmallVectorImpl<uint32_t> &Elts) const;
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
return getBase()->getLocStart();
|
return getBase()->getLocStart();
|
||||||
}
|
}
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return AccessorLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return AccessorLoc; }
|
||||||
@ -4987,7 +5030,10 @@ public:
|
|||||||
const Stmt *getBody() const;
|
const Stmt *getBody() const;
|
||||||
Stmt *getBody();
|
Stmt *getBody();
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return getCaretLocation(); }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
|
return getCaretLocation();
|
||||||
|
}
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return getBody()->getLocEnd(); }
|
SourceLocation getLocEnd() const LLVM_READONLY { return getBody()->getLocEnd(); }
|
||||||
|
|
||||||
/// getFunctionType - Return the underlying function type for this block.
|
/// getFunctionType - Return the underlying function type for this block.
|
||||||
@ -5040,7 +5086,8 @@ public:
|
|||||||
/// getRParenLoc - Return the location of final right parenthesis.
|
/// getRParenLoc - Return the location of final right parenthesis.
|
||||||
SourceLocation getRParenLoc() const { return RParenLoc; }
|
SourceLocation getRParenLoc() const { return RParenLoc; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return BuiltinLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return BuiltinLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -5182,7 +5229,8 @@ public:
|
|||||||
return getSyntacticForm()->getExprLoc();
|
return getSyntacticForm()->getExprLoc();
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
return getSyntacticForm()->getLocStart();
|
return getSyntacticForm()->getLocStart();
|
||||||
}
|
}
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY {
|
SourceLocation getLocEnd() const LLVM_READONLY {
|
||||||
@ -5309,7 +5357,8 @@ public:
|
|||||||
SourceLocation getBuiltinLoc() const { return BuiltinLoc; }
|
SourceLocation getBuiltinLoc() const { return BuiltinLoc; }
|
||||||
SourceLocation getRParenLoc() const { return RParenLoc; }
|
SourceLocation getRParenLoc() const { return RParenLoc; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return BuiltinLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return BuiltinLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -5363,7 +5412,8 @@ public:
|
|||||||
return const_child_range(const_child_iterator(), const_child_iterator());
|
return const_child_range(const_child_iterator(), const_child_iterator());
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return SourceLocation(); }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return SourceLocation(); }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return SourceLocation(); }
|
SourceLocation getLocEnd() const LLVM_READONLY { return SourceLocation(); }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
|
@ -132,7 +132,8 @@ public:
|
|||||||
: getOperatorLoc();
|
: getOperatorLoc();
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return Range.getBegin(); }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return Range.getEnd(); }
|
SourceLocation getLocEnd() const LLVM_READONLY { return Range.getEnd(); }
|
||||||
SourceRange getSourceRange() const { return Range; }
|
SourceRange getSourceRange() const { return Range; }
|
||||||
|
|
||||||
@ -278,7 +279,8 @@ public:
|
|||||||
/// Retrieve the location of the closing parenthesis.
|
/// Retrieve the location of the closing parenthesis.
|
||||||
SourceLocation getRParenLoc() const { return RParenLoc; }
|
SourceLocation getRParenLoc() const { return RParenLoc; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return Loc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
||||||
SourceRange getAngleBrackets() const LLVM_READONLY { return AngleBrackets; }
|
SourceRange getAngleBrackets() const LLVM_READONLY { return AngleBrackets; }
|
||||||
|
|
||||||
@ -524,7 +526,8 @@ public:
|
|||||||
return const_cast<UserDefinedLiteral*>(this)->getCookedLiteral();
|
return const_cast<UserDefinedLiteral*>(this)->getCookedLiteral();
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const {
|
||||||
if (getLiteralOperatorKind() == LOK_Template)
|
if (getLiteralOperatorKind() == LOK_Template)
|
||||||
return getRParenLoc();
|
return getRParenLoc();
|
||||||
return getArg(0)->getLocStart();
|
return getArg(0)->getLocStart();
|
||||||
@ -563,7 +566,8 @@ public:
|
|||||||
bool getValue() const { return Value; }
|
bool getValue() const { return Value; }
|
||||||
void setValue(bool V) { Value = V; }
|
void setValue(bool V) { Value = V; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return Loc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return Loc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return Loc; }
|
||||||
|
|
||||||
SourceLocation getLocation() const { return Loc; }
|
SourceLocation getLocation() const { return Loc; }
|
||||||
@ -594,7 +598,8 @@ public:
|
|||||||
explicit CXXNullPtrLiteralExpr(EmptyShell Empty)
|
explicit CXXNullPtrLiteralExpr(EmptyShell Empty)
|
||||||
: Expr(CXXNullPtrLiteralExprClass, Empty) {}
|
: Expr(CXXNullPtrLiteralExprClass, Empty) {}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return Loc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return Loc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return Loc; }
|
||||||
|
|
||||||
SourceLocation getLocation() const { return Loc; }
|
SourceLocation getLocation() const { return Loc; }
|
||||||
@ -631,7 +636,8 @@ public:
|
|||||||
Expr *getSubExpr() { return static_cast<Expr*>(SubExpr); }
|
Expr *getSubExpr() { return static_cast<Expr*>(SubExpr); }
|
||||||
const Expr *getSubExpr() const { return static_cast<const Expr*>(SubExpr); }
|
const Expr *getSubExpr() const { return static_cast<const Expr*>(SubExpr); }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
return SubExpr->getLocStart();
|
return SubExpr->getLocStart();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -723,7 +729,8 @@ public:
|
|||||||
Operand = E;
|
Operand = E;
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return Range.getBegin(); }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return Range.getEnd(); }
|
SourceLocation getLocEnd() const LLVM_READONLY { return Range.getEnd(); }
|
||||||
SourceRange getSourceRange() const LLVM_READONLY { return Range; }
|
SourceRange getSourceRange() const LLVM_READONLY { return Range; }
|
||||||
void setSourceRange(SourceRange R) { Range = R; }
|
void setSourceRange(SourceRange R) { Range = R; }
|
||||||
@ -778,7 +785,8 @@ public:
|
|||||||
return getBaseExpr() && getBaseExpr()->isImplicitCXXThis();
|
return getBaseExpr() && getBaseExpr()->isImplicitCXXThis();
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const {
|
||||||
if (!isImplicitAccess())
|
if (!isImplicitAccess())
|
||||||
return BaseExpr->getLocStart();
|
return BaseExpr->getLocStart();
|
||||||
else if (QualifierLoc)
|
else if (QualifierLoc)
|
||||||
@ -847,7 +855,8 @@ public:
|
|||||||
Expr *getIdx() { return cast<Expr>(SubExprs[IDX_EXPR]); }
|
Expr *getIdx() { return cast<Expr>(SubExprs[IDX_EXPR]); }
|
||||||
const Expr *getIdx() const { return cast<Expr>(SubExprs[IDX_EXPR]); }
|
const Expr *getIdx() const { return cast<Expr>(SubExprs[IDX_EXPR]); }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
return getBase()->getLocStart();
|
return getBase()->getLocStart();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -933,7 +942,8 @@ public:
|
|||||||
void setUuidStr(StringRef US) { UuidStr = US; }
|
void setUuidStr(StringRef US) { UuidStr = US; }
|
||||||
StringRef getUuidStr() const { return UuidStr; }
|
StringRef getUuidStr() const { return UuidStr; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return Range.getBegin(); }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return Range.getEnd(); }
|
SourceLocation getLocEnd() const LLVM_READONLY { return Range.getEnd(); }
|
||||||
SourceRange getSourceRange() const LLVM_READONLY { return Range; }
|
SourceRange getSourceRange() const LLVM_READONLY { return Range; }
|
||||||
void setSourceRange(SourceRange R) { Range = R; }
|
void setSourceRange(SourceRange R) { Range = R; }
|
||||||
@ -982,7 +992,8 @@ public:
|
|||||||
SourceLocation getLocation() const { return Loc; }
|
SourceLocation getLocation() const { return Loc; }
|
||||||
void setLocation(SourceLocation L) { Loc = L; }
|
void setLocation(SourceLocation L) { Loc = L; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return Loc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return Loc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return Loc; }
|
||||||
|
|
||||||
bool isImplicit() const { return Implicit; }
|
bool isImplicit() const { return Implicit; }
|
||||||
@ -1037,7 +1048,8 @@ public:
|
|||||||
/// this variable.
|
/// this variable.
|
||||||
bool isThrownVariableInScope() const { return IsThrownVariableInScope; }
|
bool isThrownVariableInScope() const { return IsThrownVariableInScope; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return ThrowLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return ThrowLoc; }
|
||||||
|
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY {
|
SourceLocation getLocEnd() const LLVM_READONLY {
|
||||||
if (!getSubExpr())
|
if (!getSubExpr())
|
||||||
@ -1108,7 +1120,8 @@ public:
|
|||||||
|
|
||||||
/// Default argument expressions have no representation in the
|
/// Default argument expressions have no representation in the
|
||||||
/// source, so they have an empty source range.
|
/// source, so they have an empty source range.
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return SourceLocation(); }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return SourceLocation(); }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return SourceLocation(); }
|
SourceLocation getLocEnd() const LLVM_READONLY { return SourceLocation(); }
|
||||||
|
|
||||||
SourceLocation getExprLoc() const LLVM_READONLY { return Loc; }
|
SourceLocation getExprLoc() const LLVM_READONLY { return Loc; }
|
||||||
@ -1168,7 +1181,8 @@ public:
|
|||||||
return Field->getInClassInitializer();
|
return Field->getInClassInitializer();
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return Loc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return Loc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return Loc; }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -1241,7 +1255,8 @@ public:
|
|||||||
Expr *getSubExpr() { return cast<Expr>(SubExpr); }
|
Expr *getSubExpr() { return cast<Expr>(SubExpr); }
|
||||||
void setSubExpr(Expr *E) { SubExpr = E; }
|
void setSubExpr(Expr *E) { SubExpr = E; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
return SubExpr->getLocStart();
|
return SubExpr->getLocStart();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1398,7 +1413,8 @@ public:
|
|||||||
Args[Arg] = ArgExpr;
|
Args[Arg] = ArgExpr;
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY;
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY;
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY;
|
SourceLocation getLocEnd() const LLVM_READONLY;
|
||||||
SourceRange getParenOrBraceRange() const { return ParenOrBraceRange; }
|
SourceRange getParenOrBraceRange() const { return ParenOrBraceRange; }
|
||||||
void setParenOrBraceRange(SourceRange Range) { ParenOrBraceRange = Range; }
|
void setParenOrBraceRange(SourceRange Range) { ParenOrBraceRange = Range; }
|
||||||
@ -1470,7 +1486,8 @@ public:
|
|||||||
bool inheritedFromVBase() const { return InheritedFromVirtualBase; }
|
bool inheritedFromVBase() const { return InheritedFromVirtualBase; }
|
||||||
|
|
||||||
SourceLocation getLocation() const LLVM_READONLY { return Loc; }
|
SourceLocation getLocation() const LLVM_READONLY { return Loc; }
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return Loc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return Loc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return Loc; }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -1533,7 +1550,8 @@ public:
|
|||||||
/// Determine whether this expression models list-initialization.
|
/// Determine whether this expression models list-initialization.
|
||||||
bool isListInitialization() const { return LParenLoc.isInvalid(); }
|
bool isListInitialization() const { return LParenLoc.isInvalid(); }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY;
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY;
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY;
|
SourceLocation getLocEnd() const LLVM_READONLY;
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -1577,7 +1595,8 @@ public:
|
|||||||
|
|
||||||
TypeSourceInfo *getTypeSourceInfo() const { return Type; }
|
TypeSourceInfo *getTypeSourceInfo() const { return Type; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY;
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY;
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY;
|
SourceLocation getLocEnd() const LLVM_READONLY;
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -1814,7 +1833,8 @@ public:
|
|||||||
return T->getStmtClass() == LambdaExprClass;
|
return T->getStmtClass() == LambdaExprClass;
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
return IntroducerRange.getBegin();
|
return IntroducerRange.getBegin();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1853,7 +1873,8 @@ public:
|
|||||||
|
|
||||||
SourceLocation getRParenLoc() const { return RParenLoc; }
|
SourceLocation getRParenLoc() const { return RParenLoc; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY;
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY;
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -2082,7 +2103,8 @@ public:
|
|||||||
return Range;
|
return Range;
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return getStartLoc(); }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return getStartLoc(); }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return getEndLoc(); }
|
SourceLocation getLocEnd() const LLVM_READONLY { return getEndLoc(); }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -2160,7 +2182,8 @@ public:
|
|||||||
/// be a pointer, return an invalid type.
|
/// be a pointer, return an invalid type.
|
||||||
QualType getDestroyedType() const;
|
QualType getDestroyedType() const;
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return Loc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY {return Argument->getLocEnd();}
|
SourceLocation getLocEnd() const LLVM_READONLY {return Argument->getLocEnd();}
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -2346,7 +2369,10 @@ public:
|
|||||||
DestroyedType = PseudoDestructorTypeStorage(Info);
|
DestroyedType = PseudoDestructorTypeStorage(Info);
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {return Base->getLocStart();}
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
|
return Base->getLocStart();
|
||||||
|
}
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY;
|
SourceLocation getLocEnd() const LLVM_READONLY;
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -2428,7 +2454,8 @@ public:
|
|||||||
getNumArgs());
|
getNumArgs());
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return Loc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -2489,7 +2516,8 @@ public:
|
|||||||
|
|
||||||
virtual ~ArrayTypeTraitExpr() = default;
|
virtual ~ArrayTypeTraitExpr() = default;
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return Loc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return RParen; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return RParen; }
|
||||||
|
|
||||||
ArrayTypeTrait getTrait() const { return static_cast<ArrayTypeTrait>(ATT); }
|
ArrayTypeTrait getTrait() const { return static_cast<ArrayTypeTrait>(ATT); }
|
||||||
@ -2553,7 +2581,8 @@ public:
|
|||||||
explicit ExpressionTraitExpr(EmptyShell Empty)
|
explicit ExpressionTraitExpr(EmptyShell Empty)
|
||||||
: Expr(ExpressionTraitExprClass, Empty), ET(0), Value(false) {}
|
: Expr(ExpressionTraitExprClass, Empty), ET(0), Value(false) {}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return Loc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return RParen; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return RParen; }
|
||||||
|
|
||||||
ExpressionTrait getTrait() const { return static_cast<ExpressionTrait>(ET); }
|
ExpressionTrait getTrait() const { return static_cast<ExpressionTrait>(ET); }
|
||||||
@ -2845,7 +2874,8 @@ public:
|
|||||||
/// that was looked in to find these results.
|
/// that was looked in to find these results.
|
||||||
CXXRecordDecl *getNamingClass() const { return NamingClass; }
|
CXXRecordDecl *getNamingClass() const { return NamingClass; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
if (NestedNameSpecifierLoc l = getQualifierLoc())
|
if (NestedNameSpecifierLoc l = getQualifierLoc())
|
||||||
return l.getBeginLoc();
|
return l.getBeginLoc();
|
||||||
return getNameInfo().getLocStart();
|
return getNameInfo().getLocStart();
|
||||||
@ -2997,7 +3027,8 @@ public:
|
|||||||
|
|
||||||
/// Note: getLocStart() is the start of the whole DependentScopeDeclRefExpr,
|
/// Note: getLocStart() is the start of the whole DependentScopeDeclRefExpr,
|
||||||
/// and differs from getLocation().getStart().
|
/// and differs from getLocation().getStart().
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
return QualifierLoc.getBeginLoc();
|
return QualifierLoc.getBeginLoc();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3077,7 +3108,8 @@ public:
|
|||||||
/// when modifying an existing AST to preserve its invariants.
|
/// when modifying an existing AST to preserve its invariants.
|
||||||
void setSubExpr(Expr *E) { SubExpr = E; }
|
void setSubExpr(Expr *E) { SubExpr = E; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
return SubExpr->getLocStart();
|
return SubExpr->getLocStart();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3202,7 +3234,8 @@ public:
|
|||||||
*(arg_begin() + I) = E;
|
*(arg_begin() + I) = E;
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY;
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY;
|
||||||
|
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY {
|
SourceLocation getLocEnd() const LLVM_READONLY {
|
||||||
if (!RParenLoc.isValid() && NumArgs > 0)
|
if (!RParenLoc.isValid() && NumArgs > 0)
|
||||||
@ -3424,7 +3457,8 @@ public:
|
|||||||
return {getTemplateArgs(), getNumTemplateArgs()};
|
return {getTemplateArgs(), getNumTemplateArgs()};
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
if (!isImplicitAccess())
|
if (!isImplicitAccess())
|
||||||
return Base->getLocStart();
|
return Base->getLocStart();
|
||||||
if (getQualifier())
|
if (getQualifier())
|
||||||
@ -3574,7 +3608,8 @@ public:
|
|||||||
// diagnosing a problem with this expression.
|
// diagnosing a problem with this expression.
|
||||||
SourceLocation getExprLoc() const LLVM_READONLY { return getMemberLoc(); }
|
SourceLocation getExprLoc() const LLVM_READONLY { return getMemberLoc(); }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
if (!isImplicitAccess())
|
if (!isImplicitAccess())
|
||||||
return Base->getLocStart();
|
return Base->getLocStart();
|
||||||
if (NestedNameSpecifierLoc l = getQualifierLoc())
|
if (NestedNameSpecifierLoc l = getQualifierLoc())
|
||||||
@ -3647,7 +3682,8 @@ public:
|
|||||||
|
|
||||||
Expr *getOperand() const { return static_cast<Expr*>(Operand); }
|
Expr *getOperand() const { return static_cast<Expr*>(Operand); }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return Range.getBegin(); }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return Range.getEnd(); }
|
SourceLocation getLocEnd() const LLVM_READONLY { return Range.getEnd(); }
|
||||||
SourceRange getSourceRange() const LLVM_READONLY { return Range; }
|
SourceRange getSourceRange() const LLVM_READONLY { return Range; }
|
||||||
|
|
||||||
@ -3725,7 +3761,8 @@ public:
|
|||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
return Pattern->getLocStart();
|
return Pattern->getLocStart();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3849,7 +3886,8 @@ public:
|
|||||||
return llvm::makeArrayRef(Args, Args + Length);
|
return llvm::makeArrayRef(Args, Args + Length);
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return OperatorLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return OperatorLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -3893,7 +3931,8 @@ public:
|
|||||||
Param(param), Replacement(replacement), NameLoc(loc) {}
|
Param(param), Replacement(replacement), NameLoc(loc) {}
|
||||||
|
|
||||||
SourceLocation getNameLoc() const { return NameLoc; }
|
SourceLocation getNameLoc() const { return NameLoc; }
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return NameLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return NameLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return NameLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return NameLoc; }
|
||||||
|
|
||||||
Expr *getReplacement() const { return cast<Expr>(Replacement); }
|
Expr *getReplacement() const { return cast<Expr>(Replacement); }
|
||||||
@ -3957,7 +3996,8 @@ public:
|
|||||||
/// template arguments.
|
/// template arguments.
|
||||||
TemplateArgument getArgumentPack() const;
|
TemplateArgument getArgumentPack() const;
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return NameLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return NameLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return NameLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return NameLoc; }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -4030,7 +4070,8 @@ public:
|
|||||||
/// Get an expansion of the parameter pack by index.
|
/// Get an expansion of the parameter pack by index.
|
||||||
ParmVarDecl *getExpansion(unsigned I) const { return begin()[I]; }
|
ParmVarDecl *getExpansion(unsigned I) const { return begin()[I]; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return NameLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return NameLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return NameLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return NameLoc; }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -4142,7 +4183,8 @@ public:
|
|||||||
return getValueKind() == VK_LValue;
|
return getValueKind() == VK_LValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
return getTemporary()->getLocStart();
|
return getTemporary()->getLocStart();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4217,9 +4259,8 @@ public:
|
|||||||
SourceLocation getEllipsisLoc() const { return EllipsisLoc; }
|
SourceLocation getEllipsisLoc() const { return EllipsisLoc; }
|
||||||
BinaryOperatorKind getOperator() const { return Opcode; }
|
BinaryOperatorKind getOperator() const { return Opcode; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
return LParenLoc;
|
SourceLocation getBeginLoc() const LLVM_READONLY { return LParenLoc; }
|
||||||
}
|
|
||||||
|
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY {
|
SourceLocation getLocEnd() const LLVM_READONLY {
|
||||||
return RParenLoc;
|
return RParenLoc;
|
||||||
@ -4312,9 +4353,8 @@ public:
|
|||||||
return static_cast<Expr*>(SubExprs[SubExpr::Resume]);
|
return static_cast<Expr*>(SubExprs[SubExpr::Resume]);
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
return KeywordLoc;
|
SourceLocation getBeginLoc() const LLVM_READONLY { return KeywordLoc; }
|
||||||
}
|
|
||||||
|
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY {
|
SourceLocation getLocEnd() const LLVM_READONLY {
|
||||||
return getCommonExpr()->getLocEnd();
|
return getCommonExpr()->getLocEnd();
|
||||||
@ -4400,7 +4440,8 @@ public:
|
|||||||
|
|
||||||
SourceLocation getKeywordLoc() const { return KeywordLoc; }
|
SourceLocation getKeywordLoc() const { return KeywordLoc; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return KeywordLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return KeywordLoc; }
|
||||||
|
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY {
|
SourceLocation getLocEnd() const LLVM_READONLY {
|
||||||
return getOperand()->getLocEnd();
|
return getOperand()->getLocEnd();
|
||||||
|
@ -67,7 +67,8 @@ public:
|
|||||||
SourceLocation getAtLoc() const { return AtLoc; }
|
SourceLocation getAtLoc() const { return AtLoc; }
|
||||||
void setAtLoc(SourceLocation L) { AtLoc = L; }
|
void setAtLoc(SourceLocation L) { AtLoc = L; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return AtLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return String->getLocEnd(); }
|
SourceLocation getLocEnd() const LLVM_READONLY { return String->getLocEnd(); }
|
||||||
|
|
||||||
// Iterators
|
// Iterators
|
||||||
@ -94,7 +95,8 @@ public:
|
|||||||
bool getValue() const { return Value; }
|
bool getValue() const { return Value; }
|
||||||
void setValue(bool V) { Value = V; }
|
void setValue(bool V) { Value = V; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return Loc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return Loc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return Loc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return Loc; }
|
||||||
|
|
||||||
SourceLocation getLocation() const { return Loc; }
|
SourceLocation getLocation() const { return Loc; }
|
||||||
@ -141,7 +143,8 @@ public:
|
|||||||
|
|
||||||
SourceLocation getAtLoc() const { return Range.getBegin(); }
|
SourceLocation getAtLoc() const { return Range.getBegin(); }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return Range.getBegin(); }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return Range.getEnd(); }
|
SourceLocation getLocEnd() const LLVM_READONLY { return Range.getEnd(); }
|
||||||
|
|
||||||
SourceRange getSourceRange() const LLVM_READONLY {
|
SourceRange getSourceRange() const LLVM_READONLY {
|
||||||
@ -194,7 +197,8 @@ public:
|
|||||||
static ObjCArrayLiteral *CreateEmpty(const ASTContext &C,
|
static ObjCArrayLiteral *CreateEmpty(const ASTContext &C,
|
||||||
unsigned NumElements);
|
unsigned NumElements);
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return Range.getBegin(); }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return Range.getEnd(); }
|
SourceLocation getLocEnd() const LLVM_READONLY { return Range.getEnd(); }
|
||||||
SourceRange getSourceRange() const LLVM_READONLY { return Range; }
|
SourceRange getSourceRange() const LLVM_READONLY { return Range; }
|
||||||
|
|
||||||
@ -359,7 +363,8 @@ public:
|
|||||||
return DictWithObjectsMethod;
|
return DictWithObjectsMethod;
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return Range.getBegin(); }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return Range.getEnd(); }
|
SourceLocation getLocEnd() const LLVM_READONLY { return Range.getEnd(); }
|
||||||
SourceRange getSourceRange() const LLVM_READONLY { return Range; }
|
SourceRange getSourceRange() const LLVM_READONLY { return Range; }
|
||||||
|
|
||||||
@ -412,7 +417,8 @@ public:
|
|||||||
EncodedType = EncType;
|
EncodedType = EncType;
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return AtLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
||||||
|
|
||||||
// Iterators
|
// Iterators
|
||||||
@ -447,7 +453,8 @@ public:
|
|||||||
void setAtLoc(SourceLocation L) { AtLoc = L; }
|
void setAtLoc(SourceLocation L) { AtLoc = L; }
|
||||||
void setRParenLoc(SourceLocation L) { RParenLoc = L; }
|
void setRParenLoc(SourceLocation L) { RParenLoc = L; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return AtLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
||||||
|
|
||||||
/// getNumArgs - Return the number of actual arguments to this call.
|
/// getNumArgs - Return the number of actual arguments to this call.
|
||||||
@ -496,7 +503,8 @@ public:
|
|||||||
void setAtLoc(SourceLocation L) { AtLoc = L; }
|
void setAtLoc(SourceLocation L) { AtLoc = L; }
|
||||||
void setRParenLoc(SourceLocation L) { RParenLoc = L; }
|
void setRParenLoc(SourceLocation L) { RParenLoc = L; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return AtLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
||||||
|
|
||||||
// Iterators
|
// Iterators
|
||||||
@ -556,7 +564,8 @@ public:
|
|||||||
SourceLocation getLocation() const { return Loc; }
|
SourceLocation getLocation() const { return Loc; }
|
||||||
void setLocation(SourceLocation L) { Loc = L; }
|
void setLocation(SourceLocation L) { Loc = L; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
return isFreeIvar() ? Loc : getBase()->getLocStart();
|
return isFreeIvar() ? Loc : getBase()->getLocStart();
|
||||||
}
|
}
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return Loc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return Loc; }
|
||||||
@ -742,7 +751,8 @@ public:
|
|||||||
/// Determine the type of the base, regardless of the kind of receiver.
|
/// Determine the type of the base, regardless of the kind of receiver.
|
||||||
QualType getReceiverType(const ASTContext &ctx) const;
|
QualType getReceiverType(const ASTContext &ctx) const;
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
return isObjectReceiver() ? getBase()->getLocStart() :getReceiverLocation();
|
return isObjectReceiver() ? getBase()->getLocStart() :getReceiverLocation();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -838,7 +848,8 @@ public:
|
|||||||
SourceLocation getRBracket() const { return RBracket; }
|
SourceLocation getRBracket() const { return RBracket; }
|
||||||
void setRBracket(SourceLocation RB) { RBracket = RB; }
|
void setRBracket(SourceLocation RB) { RBracket = RB; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
return SubExprs[BASE]->getLocStart();
|
return SubExprs[BASE]->getLocStart();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1395,7 +1406,8 @@ public:
|
|||||||
RBracLoc = R.getEnd();
|
RBracLoc = R.getEnd();
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return LBracLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return LBracLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return RBracLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return RBracLoc; }
|
||||||
|
|
||||||
// Iterators
|
// Iterators
|
||||||
@ -1472,7 +1484,8 @@ public:
|
|||||||
SourceLocation getOpLoc() const { return OpLoc; }
|
SourceLocation getOpLoc() const { return OpLoc; }
|
||||||
void setOpLoc(SourceLocation L) { OpLoc = L; }
|
void setOpLoc(SourceLocation L) { OpLoc = L; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
return getBase()->getLocStart();
|
return getBase()->getLocStart();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1549,7 +1562,8 @@ public:
|
|||||||
child_range children() { return child_range(&Operand, &Operand+1); }
|
child_range children() { return child_range(&Operand, &Operand+1); }
|
||||||
|
|
||||||
// Source locations are determined by the subexpression.
|
// Source locations are determined by the subexpression.
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
return Operand->getLocStart();
|
return Operand->getLocStart();
|
||||||
}
|
}
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return Operand->getLocEnd();}
|
SourceLocation getLocEnd() const LLVM_READONLY { return Operand->getLocEnd();}
|
||||||
@ -1611,7 +1625,8 @@ public:
|
|||||||
/// The location of the bridge keyword.
|
/// The location of the bridge keyword.
|
||||||
SourceLocation getBridgeKeywordLoc() const { return BridgeKeywordLoc; }
|
SourceLocation getBridgeKeywordLoc() const { return BridgeKeywordLoc; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return LParenLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return LParenLoc; }
|
||||||
|
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY {
|
SourceLocation getLocEnd() const LLVM_READONLY {
|
||||||
return getSubExpr()->getLocEnd();
|
return getSubExpr()->getLocEnd();
|
||||||
@ -1651,7 +1666,8 @@ public:
|
|||||||
explicit ObjCAvailabilityCheckExpr(EmptyShell Shell)
|
explicit ObjCAvailabilityCheckExpr(EmptyShell Shell)
|
||||||
: Expr(ObjCAvailabilityCheckExprClass, Shell) {}
|
: Expr(ObjCAvailabilityCheckExprClass, Shell) {}
|
||||||
|
|
||||||
SourceLocation getLocStart() const { return AtLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const { return AtLoc; }
|
||||||
SourceLocation getLocEnd() const { return RParen; }
|
SourceLocation getLocEnd() const { return RParen; }
|
||||||
SourceRange getSourceRange() const { return {AtLoc, RParen}; }
|
SourceRange getSourceRange() const { return {AtLoc, RParen}; }
|
||||||
|
|
||||||
|
@ -101,7 +101,8 @@ public:
|
|||||||
/// Set length of the array section.
|
/// Set length of the array section.
|
||||||
void setLength(Expr *E) { SubExprs[LENGTH] = E; }
|
void setLength(Expr *E) { SubExprs[LENGTH] = E; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
return getBase()->getLocStart();
|
return getBase()->getLocStart();
|
||||||
}
|
}
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return RBracketLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return RBracketLoc; }
|
||||||
|
@ -64,7 +64,8 @@ protected:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
/// Returns the starting location of the clause.
|
/// Returns the starting location of the clause.
|
||||||
SourceLocation getLocStart() const { return StartLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const { return StartLoc; }
|
||||||
|
|
||||||
/// Returns the ending location of the clause.
|
/// Returns the ending location of the clause.
|
||||||
SourceLocation getLocEnd() const { return EndLoc; }
|
SourceLocation getLocEnd() const { return EndLoc; }
|
||||||
|
@ -101,7 +101,8 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
SourceRange getSourceRange() const LLVM_READONLY { return Range; }
|
SourceRange getSourceRange() const LLVM_READONLY { return Range; }
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return Range.getBegin(); }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return Range.getEnd(); }
|
SourceLocation getLocEnd() const LLVM_READONLY { return Range.getEnd(); }
|
||||||
|
|
||||||
const char *getBriefText(const ASTContext &Context) const {
|
const char *getBriefText(const ASTContext &Context) const {
|
||||||
|
@ -398,7 +398,8 @@ public:
|
|||||||
/// value objects created/interpreted by SourceManager. We assume AST
|
/// value objects created/interpreted by SourceManager. We assume AST
|
||||||
/// clients will have a pointer to the respective SourceManager.
|
/// clients will have a pointer to the respective SourceManager.
|
||||||
SourceRange getSourceRange() const LLVM_READONLY;
|
SourceRange getSourceRange() const LLVM_READONLY;
|
||||||
SourceLocation getLocStart() const LLVM_READONLY;
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY;
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY;
|
SourceLocation getLocEnd() const LLVM_READONLY;
|
||||||
|
|
||||||
// global temp stats (until we have a per-module visitor)
|
// global temp stats (until we have a per-module visitor)
|
||||||
@ -527,7 +528,8 @@ public:
|
|||||||
SourceLocation getEndLoc() const { return EndLoc; }
|
SourceLocation getEndLoc() const { return EndLoc; }
|
||||||
void setEndLoc(SourceLocation L) { EndLoc = L; }
|
void setEndLoc(SourceLocation L) { EndLoc = L; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return StartLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return StartLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return EndLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return EndLoc; }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -595,7 +597,8 @@ public:
|
|||||||
|
|
||||||
bool hasLeadingEmptyMacro() const { return HasLeadingEmptyMacro; }
|
bool hasLeadingEmptyMacro() const { return HasLeadingEmptyMacro; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return SemiLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return SemiLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return SemiLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return SemiLoc; }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -695,7 +698,8 @@ public:
|
|||||||
return const_reverse_body_iterator(body_begin());
|
return const_reverse_body_iterator(body_begin());
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return LBraceLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return LBraceLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return RBraceLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return RBraceLoc; }
|
||||||
|
|
||||||
SourceLocation getLBracLoc() const { return LBraceLoc; }
|
SourceLocation getLBracLoc() const { return LBraceLoc; }
|
||||||
@ -744,7 +748,8 @@ public:
|
|||||||
return const_cast<SwitchCase*>(this)->getSubStmt();
|
return const_cast<SwitchCase*>(this)->getSubStmt();
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return KeywordLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return KeywordLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY;
|
SourceLocation getLocEnd() const LLVM_READONLY;
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -797,7 +802,8 @@ public:
|
|||||||
void setLHS(Expr *Val) { SubExprs[LHS] = reinterpret_cast<Stmt*>(Val); }
|
void setLHS(Expr *Val) { SubExprs[LHS] = reinterpret_cast<Stmt*>(Val); }
|
||||||
void setRHS(Expr *Val) { SubExprs[RHS] = reinterpret_cast<Stmt*>(Val); }
|
void setRHS(Expr *Val) { SubExprs[RHS] = reinterpret_cast<Stmt*>(Val); }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return KeywordLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return KeywordLoc; }
|
||||||
|
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY {
|
SourceLocation getLocEnd() const LLVM_READONLY {
|
||||||
// Handle deeply nested case statements with iteration instead of recursion.
|
// Handle deeply nested case statements with iteration instead of recursion.
|
||||||
@ -838,7 +844,8 @@ public:
|
|||||||
SourceLocation getColonLoc() const { return ColonLoc; }
|
SourceLocation getColonLoc() const { return ColonLoc; }
|
||||||
void setColonLoc(SourceLocation L) { ColonLoc = L; }
|
void setColonLoc(SourceLocation L) { ColonLoc = L; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return KeywordLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return KeywordLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return SubStmt->getLocEnd();}
|
SourceLocation getLocEnd() const LLVM_READONLY { return SubStmt->getLocEnd();}
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -882,7 +889,8 @@ public:
|
|||||||
void setIdentLoc(SourceLocation L) { IdentLoc = L; }
|
void setIdentLoc(SourceLocation L) { IdentLoc = L; }
|
||||||
void setSubStmt(Stmt *SS) { SubStmt = SS; }
|
void setSubStmt(Stmt *SS) { SubStmt = SS; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return IdentLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return IdentLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return SubStmt->getLocEnd();}
|
SourceLocation getLocEnd() const LLVM_READONLY { return SubStmt->getLocEnd();}
|
||||||
|
|
||||||
child_range children() { return child_range(&SubStmt, &SubStmt+1); }
|
child_range children() { return child_range(&SubStmt, &SubStmt+1); }
|
||||||
@ -937,7 +945,8 @@ public:
|
|||||||
Stmt *getSubStmt() { return SubStmt; }
|
Stmt *getSubStmt() { return SubStmt; }
|
||||||
const Stmt *getSubStmt() const { return SubStmt; }
|
const Stmt *getSubStmt() const { return SubStmt; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return AttrLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return AttrLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return SubStmt->getLocEnd();}
|
SourceLocation getLocEnd() const LLVM_READONLY { return SubStmt->getLocEnd();}
|
||||||
|
|
||||||
child_range children() { return child_range(&SubStmt, &SubStmt + 1); }
|
child_range children() { return child_range(&SubStmt, &SubStmt + 1); }
|
||||||
@ -1005,7 +1014,8 @@ public:
|
|||||||
|
|
||||||
bool isObjCAvailabilityCheck() const;
|
bool isObjCAvailabilityCheck() const;
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return IfLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return IfLoc; }
|
||||||
|
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY {
|
SourceLocation getLocEnd() const LLVM_READONLY {
|
||||||
if (SubExprs[ELSE])
|
if (SubExprs[ELSE])
|
||||||
@ -1100,7 +1110,8 @@ public:
|
|||||||
/// have been explicitly covered.
|
/// have been explicitly covered.
|
||||||
bool isAllEnumCasesCovered() const { return FirstCase.getInt(); }
|
bool isAllEnumCasesCovered() const { return FirstCase.getInt(); }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return SwitchLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return SwitchLoc; }
|
||||||
|
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY {
|
SourceLocation getLocEnd() const LLVM_READONLY {
|
||||||
return SubExprs[BODY] ? SubExprs[BODY]->getLocEnd() : SubExprs[COND]->getLocEnd();
|
return SubExprs[BODY] ? SubExprs[BODY]->getLocEnd() : SubExprs[COND]->getLocEnd();
|
||||||
@ -1156,7 +1167,8 @@ public:
|
|||||||
SourceLocation getWhileLoc() const { return WhileLoc; }
|
SourceLocation getWhileLoc() const { return WhileLoc; }
|
||||||
void setWhileLoc(SourceLocation L) { WhileLoc = L; }
|
void setWhileLoc(SourceLocation L) { WhileLoc = L; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return WhileLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return WhileLoc; }
|
||||||
|
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY {
|
SourceLocation getLocEnd() const LLVM_READONLY {
|
||||||
return SubExprs[BODY]->getLocEnd();
|
return SubExprs[BODY]->getLocEnd();
|
||||||
@ -1206,7 +1218,8 @@ public:
|
|||||||
SourceLocation getRParenLoc() const { return RParenLoc; }
|
SourceLocation getRParenLoc() const { return RParenLoc; }
|
||||||
void setRParenLoc(SourceLocation L) { RParenLoc = L; }
|
void setRParenLoc(SourceLocation L) { RParenLoc = L; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return DoLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return DoLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -1276,7 +1289,8 @@ public:
|
|||||||
SourceLocation getRParenLoc() const { return RParenLoc; }
|
SourceLocation getRParenLoc() const { return RParenLoc; }
|
||||||
void setRParenLoc(SourceLocation L) { RParenLoc = L; }
|
void setRParenLoc(SourceLocation L) { RParenLoc = L; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return ForLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return ForLoc; }
|
||||||
|
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY {
|
SourceLocation getLocEnd() const LLVM_READONLY {
|
||||||
return SubExprs[BODY]->getLocEnd();
|
return SubExprs[BODY]->getLocEnd();
|
||||||
@ -1313,7 +1327,8 @@ public:
|
|||||||
SourceLocation getLabelLoc() const { return LabelLoc; }
|
SourceLocation getLabelLoc() const { return LabelLoc; }
|
||||||
void setLabelLoc(SourceLocation L) { LabelLoc = L; }
|
void setLabelLoc(SourceLocation L) { LabelLoc = L; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return GotoLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return GotoLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return LabelLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return LabelLoc; }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -1358,7 +1373,8 @@ public:
|
|||||||
return const_cast<IndirectGotoStmt*>(this)->getConstantTarget();
|
return const_cast<IndirectGotoStmt*>(this)->getConstantTarget();
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return GotoLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return GotoLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return Target->getLocEnd(); }
|
SourceLocation getLocEnd() const LLVM_READONLY { return Target->getLocEnd(); }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -1382,7 +1398,8 @@ public:
|
|||||||
SourceLocation getContinueLoc() const { return ContinueLoc; }
|
SourceLocation getContinueLoc() const { return ContinueLoc; }
|
||||||
void setContinueLoc(SourceLocation L) { ContinueLoc = L; }
|
void setContinueLoc(SourceLocation L) { ContinueLoc = L; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return ContinueLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return ContinueLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return ContinueLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return ContinueLoc; }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -1411,7 +1428,8 @@ public:
|
|||||||
SourceLocation getBreakLoc() const { return BreakLoc; }
|
SourceLocation getBreakLoc() const { return BreakLoc; }
|
||||||
void setBreakLoc(SourceLocation L) { BreakLoc = L; }
|
void setBreakLoc(SourceLocation L) { BreakLoc = L; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return BreakLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return BreakLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return BreakLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return BreakLoc; }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -1462,7 +1480,8 @@ public:
|
|||||||
const VarDecl *getNRVOCandidate() const { return NRVOCandidate; }
|
const VarDecl *getNRVOCandidate() const { return NRVOCandidate; }
|
||||||
void setNRVOCandidate(const VarDecl *Var) { NRVOCandidate = Var; }
|
void setNRVOCandidate(const VarDecl *Var) { NRVOCandidate = Var; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return RetLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return RetLoc; }
|
||||||
|
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY {
|
SourceLocation getLocEnd() const LLVM_READONLY {
|
||||||
return RetExpr ? RetExpr->getLocEnd() : RetLoc;
|
return RetExpr ? RetExpr->getLocEnd() : RetLoc;
|
||||||
@ -1519,7 +1538,8 @@ public:
|
|||||||
bool isVolatile() const { return IsVolatile; }
|
bool isVolatile() const { return IsVolatile; }
|
||||||
void setVolatile(bool V) { IsVolatile = V; }
|
void setVolatile(bool V) { IsVolatile = V; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return {}; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return {}; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return {}; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return {}; }
|
||||||
|
|
||||||
//===--- Asm String Analysis ---===//
|
//===--- Asm String Analysis ---===//
|
||||||
@ -1801,7 +1821,8 @@ public:
|
|||||||
return Clobbers[i];
|
return Clobbers[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return AsmLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return AsmLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return RParenLoc; }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -1899,7 +1920,8 @@ private:
|
|||||||
ArrayRef<Expr*> Exprs, ArrayRef<StringRef> Clobbers);
|
ArrayRef<Expr*> Exprs, ArrayRef<StringRef> Clobbers);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return AsmLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return AsmLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return EndLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return EndLoc; }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -1929,7 +1951,8 @@ public:
|
|||||||
Expr *FilterExpr,
|
Expr *FilterExpr,
|
||||||
Stmt *Block);
|
Stmt *Block);
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return getExceptLoc(); }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return getExceptLoc(); }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return getEndLoc(); }
|
SourceLocation getLocEnd() const LLVM_READONLY { return getEndLoc(); }
|
||||||
|
|
||||||
SourceLocation getExceptLoc() const { return Loc; }
|
SourceLocation getExceptLoc() const { return Loc; }
|
||||||
@ -1967,7 +1990,8 @@ public:
|
|||||||
SourceLocation FinallyLoc,
|
SourceLocation FinallyLoc,
|
||||||
Stmt *Block);
|
Stmt *Block);
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return getFinallyLoc(); }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return getFinallyLoc(); }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return getEndLoc(); }
|
SourceLocation getLocEnd() const LLVM_READONLY { return getEndLoc(); }
|
||||||
|
|
||||||
SourceLocation getFinallyLoc() const { return Loc; }
|
SourceLocation getFinallyLoc() const { return Loc; }
|
||||||
@ -2006,7 +2030,8 @@ public:
|
|||||||
SourceLocation TryLoc, Stmt *TryBlock,
|
SourceLocation TryLoc, Stmt *TryBlock,
|
||||||
Stmt *Handler);
|
Stmt *Handler);
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return getTryLoc(); }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return getTryLoc(); }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return getEndLoc(); }
|
SourceLocation getLocEnd() const LLVM_READONLY { return getEndLoc(); }
|
||||||
|
|
||||||
SourceLocation getTryLoc() const { return TryLoc; }
|
SourceLocation getTryLoc() const { return TryLoc; }
|
||||||
@ -2047,7 +2072,8 @@ public:
|
|||||||
SourceLocation getLeaveLoc() const { return LeaveLoc; }
|
SourceLocation getLeaveLoc() const { return LeaveLoc; }
|
||||||
void setLeaveLoc(SourceLocation L) { LeaveLoc = L; }
|
void setLeaveLoc(SourceLocation L) { LeaveLoc = L; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return LeaveLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return LeaveLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return LeaveLoc; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return LeaveLoc; }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -2261,7 +2287,8 @@ public:
|
|||||||
return capture_init_begin() + NumCaptures;
|
return capture_init_begin() + NumCaptures;
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
return getCapturedStmt()->getLocStart();
|
return getCapturedStmt()->getLocStart();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,7 +41,8 @@ public:
|
|||||||
CXXCatchStmt(EmptyShell Empty)
|
CXXCatchStmt(EmptyShell Empty)
|
||||||
: Stmt(CXXCatchStmtClass), ExceptionDecl(nullptr), HandlerBlock(nullptr) {}
|
: Stmt(CXXCatchStmtClass), ExceptionDecl(nullptr), HandlerBlock(nullptr) {}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return CatchLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return CatchLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY {
|
SourceLocation getLocEnd() const LLVM_READONLY {
|
||||||
return HandlerBlock->getLocEnd();
|
return HandlerBlock->getLocEnd();
|
||||||
}
|
}
|
||||||
@ -86,7 +87,8 @@ public:
|
|||||||
static CXXTryStmt *Create(const ASTContext &C, EmptyShell Empty,
|
static CXXTryStmt *Create(const ASTContext &C, EmptyShell Empty,
|
||||||
unsigned numHandlers);
|
unsigned numHandlers);
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return getTryLoc(); }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return getTryLoc(); }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return getEndLoc(); }
|
SourceLocation getLocEnd() const LLVM_READONLY { return getEndLoc(); }
|
||||||
|
|
||||||
SourceLocation getTryLoc() const { return TryLoc; }
|
SourceLocation getTryLoc() const { return TryLoc; }
|
||||||
@ -194,7 +196,8 @@ public:
|
|||||||
SourceLocation getColonLoc() const { return ColonLoc; }
|
SourceLocation getColonLoc() const { return ColonLoc; }
|
||||||
SourceLocation getRParenLoc() const { return RParenLoc; }
|
SourceLocation getRParenLoc() const { return RParenLoc; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return ForLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return ForLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY {
|
SourceLocation getLocEnd() const LLVM_READONLY {
|
||||||
return SubExprs[BODY]->getLocEnd();
|
return SubExprs[BODY]->getLocEnd();
|
||||||
}
|
}
|
||||||
@ -280,7 +283,8 @@ public:
|
|||||||
return reinterpret_cast<CompoundStmt *>(SubStmt);
|
return reinterpret_cast<CompoundStmt *>(SubStmt);
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return KeywordLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return KeywordLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return SubStmt->getLocEnd();}
|
SourceLocation getLocEnd() const LLVM_READONLY { return SubStmt->getLocEnd();}
|
||||||
|
|
||||||
child_range children() {
|
child_range children() {
|
||||||
@ -399,7 +403,8 @@ public:
|
|||||||
return {getStoredStmts() + SubStmt::FirstParamMove, NumParams};
|
return {getStoredStmts() + SubStmt::FirstParamMove, NumParams};
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
return getBody() ? getBody()->getLocStart()
|
return getBody() ? getBody()->getLocStart()
|
||||||
: getPromiseDecl()->getLocStart();
|
: getPromiseDecl()->getLocStart();
|
||||||
}
|
}
|
||||||
@ -464,7 +469,8 @@ public:
|
|||||||
bool isImplicit() const { return IsImplicit; }
|
bool isImplicit() const { return IsImplicit; }
|
||||||
void setIsImplicit(bool value = true) { IsImplicit = value; }
|
void setIsImplicit(bool value = true) { IsImplicit = value; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return CoreturnLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return CoreturnLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY {
|
SourceLocation getLocEnd() const LLVM_READONLY {
|
||||||
return getOperand() ? getOperand()->getLocEnd() : getLocStart();
|
return getOperand() ? getOperand()->getLocEnd() : getLocStart();
|
||||||
}
|
}
|
||||||
|
@ -55,7 +55,8 @@ public:
|
|||||||
SourceLocation getRParenLoc() const { return RParenLoc; }
|
SourceLocation getRParenLoc() const { return RParenLoc; }
|
||||||
void setRParenLoc(SourceLocation Loc) { RParenLoc = Loc; }
|
void setRParenLoc(SourceLocation Loc) { RParenLoc = Loc; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return ForLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return ForLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY {
|
SourceLocation getLocEnd() const LLVM_READONLY {
|
||||||
return SubExprs[BODY]->getLocEnd();
|
return SubExprs[BODY]->getLocEnd();
|
||||||
}
|
}
|
||||||
@ -104,7 +105,8 @@ public:
|
|||||||
SourceLocation getRParenLoc() const { return RParenLoc; }
|
SourceLocation getRParenLoc() const { return RParenLoc; }
|
||||||
void setRParenLoc(SourceLocation Loc) { RParenLoc = Loc; }
|
void setRParenLoc(SourceLocation Loc) { RParenLoc = Loc; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return AtCatchLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return AtCatchLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return Body->getLocEnd(); }
|
SourceLocation getLocEnd() const LLVM_READONLY { return Body->getLocEnd(); }
|
||||||
|
|
||||||
bool hasEllipsis() const { return getCatchParamDecl() == nullptr; }
|
bool hasEllipsis() const { return getCatchParamDecl() == nullptr; }
|
||||||
@ -133,7 +135,8 @@ public:
|
|||||||
Stmt *getFinallyBody() { return AtFinallyStmt; }
|
Stmt *getFinallyBody() { return AtFinallyStmt; }
|
||||||
void setFinallyBody(Stmt *S) { AtFinallyStmt = S; }
|
void setFinallyBody(Stmt *S) { AtFinallyStmt = S; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return AtFinallyLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return AtFinallyLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY {
|
SourceLocation getLocEnd() const LLVM_READONLY {
|
||||||
return AtFinallyStmt->getLocEnd();
|
return AtFinallyStmt->getLocEnd();
|
||||||
}
|
}
|
||||||
@ -238,7 +241,8 @@ public:
|
|||||||
getStmts()[1 + NumCatchStmts] = S;
|
getStmts()[1 + NumCatchStmts] = S;
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return AtTryLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return AtTryLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY;
|
SourceLocation getLocEnd() const LLVM_READONLY;
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
@ -295,7 +299,8 @@ public:
|
|||||||
}
|
}
|
||||||
void setSynchExpr(Stmt *S) { SubStmts[SYNC_EXPR] = S; }
|
void setSynchExpr(Stmt *S) { SubStmts[SYNC_EXPR] = S; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return AtSynchronizedLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return AtSynchronizedLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY {
|
SourceLocation getLocEnd() const LLVM_READONLY {
|
||||||
return getSynchBody()->getLocEnd();
|
return getSynchBody()->getLocEnd();
|
||||||
}
|
}
|
||||||
@ -329,7 +334,8 @@ public:
|
|||||||
SourceLocation getThrowLoc() const LLVM_READONLY { return AtThrowLoc; }
|
SourceLocation getThrowLoc() const LLVM_READONLY { return AtThrowLoc; }
|
||||||
void setThrowLoc(SourceLocation Loc) { AtThrowLoc = Loc; }
|
void setThrowLoc(SourceLocation Loc) { AtThrowLoc = Loc; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return AtThrowLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return AtThrowLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY {
|
SourceLocation getLocEnd() const LLVM_READONLY {
|
||||||
return Throw ? Throw->getLocEnd() : AtThrowLoc;
|
return Throw ? Throw->getLocEnd() : AtThrowLoc;
|
||||||
}
|
}
|
||||||
@ -357,7 +363,8 @@ public:
|
|||||||
Stmt *getSubStmt() { return SubStmt; }
|
Stmt *getSubStmt() { return SubStmt; }
|
||||||
void setSubStmt(Stmt *S) { SubStmt = S; }
|
void setSubStmt(Stmt *S) { SubStmt = S; }
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return AtLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return AtLoc; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return SubStmt->getLocEnd();}
|
SourceLocation getLocEnd() const LLVM_READONLY { return SubStmt->getLocEnd();}
|
||||||
|
|
||||||
SourceLocation getAtLoc() const { return AtLoc; }
|
SourceLocation getAtLoc() const { return AtLoc; }
|
||||||
|
@ -165,7 +165,8 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Returns starting location of directive kind.
|
/// Returns starting location of directive kind.
|
||||||
SourceLocation getLocStart() const { return StartLoc; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const { return StartLoc; }
|
||||||
/// Returns ending location of directive.
|
/// Returns ending location of directive.
|
||||||
SourceLocation getLocEnd() const { return EndLoc; }
|
SourceLocation getLocEnd() const { return EndLoc; }
|
||||||
|
|
||||||
|
@ -505,7 +505,8 @@ public:
|
|||||||
const CXXScopeSpec &getTypeSpecScope() const { return TypeScope; }
|
const CXXScopeSpec &getTypeSpecScope() const { return TypeScope; }
|
||||||
|
|
||||||
SourceRange getSourceRange() const LLVM_READONLY { return Range; }
|
SourceRange getSourceRange() const LLVM_READONLY { return Range; }
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return Range.getBegin(); }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return Range.getEnd(); }
|
SourceLocation getLocEnd() const LLVM_READONLY { return Range.getEnd(); }
|
||||||
|
|
||||||
SourceLocation getTypeSpecWidthLoc() const { return TSWRange.getBegin(); }
|
SourceLocation getTypeSpecWidthLoc() const { return TSWRange.getBegin(); }
|
||||||
@ -1120,7 +1121,8 @@ public:
|
|||||||
SourceRange getSourceRange() const LLVM_READONLY {
|
SourceRange getSourceRange() const LLVM_READONLY {
|
||||||
return SourceRange(StartLocation, EndLocation);
|
return SourceRange(StartLocation, EndLocation);
|
||||||
}
|
}
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return StartLocation; }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return StartLocation; }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return EndLocation; }
|
SourceLocation getLocEnd() const LLVM_READONLY { return EndLocation; }
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1870,7 +1872,8 @@ public:
|
|||||||
|
|
||||||
/// Get the source range that spans this declarator.
|
/// Get the source range that spans this declarator.
|
||||||
SourceRange getSourceRange() const LLVM_READONLY { return Range; }
|
SourceRange getSourceRange() const LLVM_READONLY { return Range; }
|
||||||
SourceLocation getLocStart() const LLVM_READONLY { return Range.getBegin(); }
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY { return Range.getBegin(); }
|
||||||
SourceLocation getLocEnd() const LLVM_READONLY { return Range.getEnd(); }
|
SourceLocation getLocEnd() const LLVM_READONLY { return Range.getEnd(); }
|
||||||
|
|
||||||
void SetSourceRange(SourceRange R) { Range = R; }
|
void SetSourceRange(SourceRange R) { Range = R; }
|
||||||
|
@ -447,7 +447,7 @@ DeclRefExpr *DeclRefExpr::CreateEmpty(const ASTContext &Context,
|
|||||||
return new (Mem) DeclRefExpr(EmptyShell());
|
return new (Mem) DeclRefExpr(EmptyShell());
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation DeclRefExpr::getLocStart() const {
|
SourceLocation DeclRefExpr::getBeginLoc() const {
|
||||||
if (hasQualifier())
|
if (hasQualifier())
|
||||||
return getQualifierLoc().getBeginLoc();
|
return getQualifierLoc().getBeginLoc();
|
||||||
return getNameInfo().getLocStart();
|
return getNameInfo().getLocStart();
|
||||||
@ -1358,7 +1358,7 @@ QualType CallExpr::getCallReturnType(const ASTContext &Ctx) const {
|
|||||||
return FnType->getReturnType();
|
return FnType->getReturnType();
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation CallExpr::getLocStart() const {
|
SourceLocation CallExpr::getBeginLoc() const {
|
||||||
if (isa<CXXOperatorCallExpr>(this))
|
if (isa<CXXOperatorCallExpr>(this))
|
||||||
return cast<CXXOperatorCallExpr>(this)->getLocStart();
|
return cast<CXXOperatorCallExpr>(this)->getLocStart();
|
||||||
|
|
||||||
@ -1529,7 +1529,7 @@ MemberExpr *MemberExpr::Create(
|
|||||||
return E;
|
return E;
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation MemberExpr::getLocStart() const {
|
SourceLocation MemberExpr::getBeginLoc() const {
|
||||||
if (isImplicitAccess()) {
|
if (isImplicitAccess()) {
|
||||||
if (hasQualifier())
|
if (hasQualifier())
|
||||||
return getQualifierLoc().getBeginLoc();
|
return getQualifierLoc().getBeginLoc();
|
||||||
@ -2039,7 +2039,7 @@ bool InitListExpr::isIdiomaticZeroInitializer(const LangOptions &LangOpts) const
|
|||||||
return Lit && Lit->getValue() == 0;
|
return Lit && Lit->getValue() == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation InitListExpr::getLocStart() const {
|
SourceLocation InitListExpr::getBeginLoc() const {
|
||||||
if (InitListExpr *SyntacticForm = getSyntacticForm())
|
if (InitListExpr *SyntacticForm = getSyntacticForm())
|
||||||
return SyntacticForm->getLocStart();
|
return SyntacticForm->getLocStart();
|
||||||
SourceLocation Beg = LBraceLoc;
|
SourceLocation Beg = LBraceLoc;
|
||||||
@ -3870,7 +3870,7 @@ SourceRange DesignatedInitExpr::getDesignatorsSourceRange() const {
|
|||||||
DIE->getDesignator(size()-1)->getLocEnd());
|
DIE->getDesignator(size()-1)->getLocEnd());
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation DesignatedInitExpr::getLocStart() const {
|
SourceLocation DesignatedInitExpr::getBeginLoc() const {
|
||||||
SourceLocation StartLoc;
|
SourceLocation StartLoc;
|
||||||
auto *DIE = const_cast<DesignatedInitExpr *>(this);
|
auto *DIE = const_cast<DesignatedInitExpr *>(this);
|
||||||
Designator &First = *DIE->getDesignator(0);
|
Designator &First = *DIE->getDesignator(0);
|
||||||
@ -3944,7 +3944,7 @@ DesignatedInitUpdateExpr::DesignatedInitUpdateExpr(const ASTContext &C,
|
|||||||
BaseAndUpdaterExprs[1] = ILE;
|
BaseAndUpdaterExprs[1] = ILE;
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation DesignatedInitUpdateExpr::getLocStart() const {
|
SourceLocation DesignatedInitUpdateExpr::getBeginLoc() const {
|
||||||
return getBase()->getLocStart();
|
return getBase()->getLocStart();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ QualType CXXUuidofExpr::getTypeOperand(ASTContext &Context) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// CXXScalarValueInitExpr
|
// CXXScalarValueInitExpr
|
||||||
SourceLocation CXXScalarValueInitExpr::getLocStart() const {
|
SourceLocation CXXScalarValueInitExpr::getBeginLoc() const {
|
||||||
return TypeInfo ? TypeInfo->getTypeLoc().getBeginLoc() : RParenLoc;
|
return TypeInfo ? TypeInfo->getTypeLoc().getBeginLoc() : RParenLoc;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -450,7 +450,7 @@ DependentScopeDeclRefExpr::CreateEmpty(const ASTContext &C,
|
|||||||
return E;
|
return E;
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation CXXConstructExpr::getLocStart() const {
|
SourceLocation CXXConstructExpr::getBeginLoc() const {
|
||||||
if (isa<CXXTemporaryObjectExpr>(this))
|
if (isa<CXXTemporaryObjectExpr>(this))
|
||||||
return cast<CXXTemporaryObjectExpr>(this)->getLocStart();
|
return cast<CXXTemporaryObjectExpr>(this)->getLocStart();
|
||||||
return Loc;
|
return Loc;
|
||||||
@ -707,7 +707,7 @@ CXXFunctionalCastExpr::CreateEmpty(const ASTContext &C, unsigned PathSize) {
|
|||||||
return new (Buffer) CXXFunctionalCastExpr(EmptyShell(), PathSize);
|
return new (Buffer) CXXFunctionalCastExpr(EmptyShell(), PathSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation CXXFunctionalCastExpr::getLocStart() const {
|
SourceLocation CXXFunctionalCastExpr::getBeginLoc() const {
|
||||||
return getTypeInfoAsWritten()->getTypeLoc().getLocStart();
|
return getTypeInfoAsWritten()->getTypeLoc().getLocStart();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -792,7 +792,7 @@ CXXTemporaryObjectExpr::CXXTemporaryObjectExpr(const ASTContext &C,
|
|||||||
CXXConstructExpr::CK_Complete, ParenOrBraceRange),
|
CXXConstructExpr::CK_Complete, ParenOrBraceRange),
|
||||||
Type(TSI) {}
|
Type(TSI) {}
|
||||||
|
|
||||||
SourceLocation CXXTemporaryObjectExpr::getLocStart() const {
|
SourceLocation CXXTemporaryObjectExpr::getBeginLoc() const {
|
||||||
return Type->getTypeLoc().getBeginLoc();
|
return Type->getTypeLoc().getBeginLoc();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1120,7 +1120,7 @@ CXXUnresolvedConstructExpr::CreateEmpty(const ASTContext &C, unsigned NumArgs) {
|
|||||||
return new (Mem) CXXUnresolvedConstructExpr(Empty, NumArgs);
|
return new (Mem) CXXUnresolvedConstructExpr(Empty, NumArgs);
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation CXXUnresolvedConstructExpr::getLocStart() const {
|
SourceLocation CXXUnresolvedConstructExpr::getBeginLoc() const {
|
||||||
return Type->getTypeLoc().getBeginLoc();
|
return Type->getTypeLoc().getBeginLoc();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -275,8 +275,8 @@ SourceRange Stmt::getSourceRange() const {
|
|||||||
llvm_unreachable("unknown statement kind!");
|
llvm_unreachable("unknown statement kind!");
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation Stmt::getLocStart() const {
|
SourceLocation Stmt::getBeginLoc() const {
|
||||||
// llvm::errs() << "getLocStart() for " << getStmtClassName() << "\n";
|
// llvm::errs() << "getBeginLoc() for " << getStmtClassName() << "\n";
|
||||||
switch (getStmtClass()) {
|
switch (getStmtClass()) {
|
||||||
case Stmt::NoStmtClass: llvm_unreachable("statement without class");
|
case Stmt::NoStmtClass: llvm_unreachable("statement without class");
|
||||||
#define ABSTRACT_STMT(type)
|
#define ABSTRACT_STMT(type)
|
||||||
|
@ -6121,7 +6121,8 @@ class FormatStringLiteral {
|
|||||||
StartToken, StartTokenByteOffset);
|
StartToken, StartTokenByteOffset);
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceLocation getLocStart() const LLVM_READONLY {
|
SourceLocation getLocStart() const LLVM_READONLY { return getBeginLoc(); }
|
||||||
|
SourceLocation getBeginLoc() const LLVM_READONLY {
|
||||||
return FExpr->getLocStart().getLocWithOffset(Offset);
|
return FExpr->getLocStart().getLocWithOffset(Offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user