File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -876,13 +876,13 @@ class CXXTypeidExpr : public Expr {
876
876
877
877
// / Best-effort check if the expression operand refers to a most derived
878
878
// / object. This is not a strong guarantee.
879
- bool isMostDerived (ASTContext &Context) const ;
879
+ bool isMostDerived (const ASTContext &Context) const ;
880
880
881
881
bool isTypeOperand () const { return Operand.is <TypeSourceInfo *>(); }
882
882
883
883
// / Retrieves the type operand of this typeid() expression after
884
884
// / various required adjustments (removing reference types, cv-qualifiers).
885
- QualType getTypeOperand (ASTContext &Context) const ;
885
+ QualType getTypeOperand (const ASTContext &Context) const ;
886
886
887
887
// / Retrieve source information for the type operand.
888
888
TypeSourceInfo *getTypeOperandSourceInfo () const {
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ bool CXXTypeidExpr::isPotentiallyEvaluated() const {
147
147
return false ;
148
148
}
149
149
150
- bool CXXTypeidExpr::isMostDerived (ASTContext &Context) const {
150
+ bool CXXTypeidExpr::isMostDerived (const ASTContext &Context) const {
151
151
assert (!isTypeOperand () && " Cannot call isMostDerived for typeid(type)" );
152
152
const Expr *E = getExprOperand ()->IgnoreParenNoopCasts (Context);
153
153
if (const auto *DRE = dyn_cast<DeclRefExpr>(E)) {
@@ -159,7 +159,7 @@ bool CXXTypeidExpr::isMostDerived(ASTContext &Context) const {
159
159
return false ;
160
160
}
161
161
162
- QualType CXXTypeidExpr::getTypeOperand (ASTContext &Context) const {
162
+ QualType CXXTypeidExpr::getTypeOperand (const ASTContext &Context) const {
163
163
assert (isTypeOperand () && " Cannot call getTypeOperand for typeid(expr)" );
164
164
Qualifiers Quals;
165
165
return Context.getUnqualifiedArrayType (
You can’t perform that action at this time.
0 commit comments