File tree Expand file tree Collapse file tree 6 files changed +8
-10
lines changed Expand file tree Collapse file tree 6 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -5914,7 +5914,7 @@ bool Compiler<Emitter>::emitLambdaStaticInvokerBody(const CXXMethodDecl *MD) {
5914
5914
5915
5915
const CXXRecordDecl *ClosureClass = MD->getParent ();
5916
5916
const CXXMethodDecl *LambdaCallOp = ClosureClass->getLambdaCallOperator ();
5917
- assert (ClosureClass->captures_begin () == ClosureClass-> captures_end ());
5917
+ assert (ClosureClass->captures (). empty ());
5918
5918
const Function *Func = this ->getFunction (LambdaCallOp);
5919
5919
if (!Func)
5920
5920
return false ;
Original file line number Diff line number Diff line change @@ -474,7 +474,7 @@ const Function *Context::getOrCreateFunction(const FunctionDecl *FuncDecl) {
474
474
IsLambdaStaticInvoker = true ;
475
475
476
476
const CXXRecordDecl *ClosureClass = MD->getParent ();
477
- assert (ClosureClass->captures_begin () == ClosureClass-> captures_end ());
477
+ assert (ClosureClass->captures (). empty ());
478
478
if (ClosureClass->isGenericLambda ()) {
479
479
const CXXMethodDecl *LambdaCallOp = ClosureClass->getLambdaCallOperator ();
480
480
assert (MD->isFunctionTemplateSpecialization () &&
Original file line number Diff line number Diff line change @@ -1983,7 +1983,7 @@ CXXRecordDecl::getVisibleConversionFunctions() const {
1983
1983
ASTContext &Ctx = getASTContext ();
1984
1984
1985
1985
ASTUnresolvedSet *Set;
1986
- if (bases_begin () == bases_end ()) {
1986
+ if (bases (). empty ()) {
1987
1987
// If root class, all conversions are visible.
1988
1988
Set = &data ().Conversions .get (Ctx);
1989
1989
} else {
Original file line number Diff line number Diff line change @@ -1443,7 +1443,7 @@ void DeclPrinter::VisitObjCMethodDecl(ObjCMethodDecl *OMD) {
1443
1443
lastPos = pos + 1 ;
1444
1444
}
1445
1445
1446
- if (OMD->param_begin () == OMD-> param_end ())
1446
+ if (OMD->parameters (). empty ())
1447
1447
Out << name;
1448
1448
1449
1449
if (OMD->isVariadic ())
@@ -1480,8 +1480,7 @@ void DeclPrinter::VisitObjCImplementationDecl(ObjCImplementationDecl *OID) {
1480
1480
}
1481
1481
Indentation -= Policy.Indentation ;
1482
1482
Out << " }\n " ;
1483
- }
1484
- else if (SID || (OID->decls_begin () != OID->decls_end ())) {
1483
+ } else if (SID || !OID->decls ().empty ()) {
1485
1484
Out << " \n " ;
1486
1485
eolnOut = true ;
1487
1486
}
@@ -1540,8 +1539,7 @@ void DeclPrinter::VisitObjCInterfaceDecl(ObjCInterfaceDecl *OID) {
1540
1539
}
1541
1540
Indentation -= Policy.Indentation ;
1542
1541
Out << " }\n " ;
1543
- }
1544
- else if (SID || (OID->decls_begin () != OID->decls_end ())) {
1542
+ } else if (SID || !OID->decls ().empty ()) {
1545
1543
Out << " \n " ;
1546
1544
eolnOut = true ;
1547
1545
}
Original file line number Diff line number Diff line change @@ -8436,7 +8436,7 @@ class ExprEvaluatorBase
8436
8436
// doesn't have an implicit argument passed in.
8437
8437
const CXXRecordDecl *ClosureClass = MD->getParent();
8438
8438
assert(
8439
- ClosureClass->captures_begin() == ClosureClass->captures_end () &&
8439
+ ClosureClass->captures().empty () &&
8440
8440
"Number of captures must be zero for conversion to function-ptr");
8441
8441
8442
8442
const CXXMethodDecl *LambdaCallOp =
Original file line number Diff line number Diff line change @@ -273,7 +273,7 @@ static NestedNameSpecifier *createNestedNameSpecifierForScopeOf(
273
273
//
274
274
// Make the situation is 'useable' but looking a bit odd by
275
275
// picking a random instance as the declaring context.
276
- if (ClassTempl->spec_begin () != ClassTempl-> spec_end ()) {
276
+ if (! ClassTempl->specializations (). empty ()) {
277
277
Decl = *(ClassTempl->spec_begin ());
278
278
Outer = dyn_cast<NamedDecl>(Decl);
279
279
OuterNS = dyn_cast<NamespaceDecl>(Decl);
You can’t perform that action at this time.
0 commit comments