File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -1405,10 +1405,11 @@ const AvailableAttr *TypeChecker::getDeprecated(const Decl *D) {
1405
1405
1406
1406
// / Returns true if some declaration lexically enclosing the reference
1407
1407
// / matches the passed in predicate and false otherwise.
1408
- static bool someEnclosingDeclMatches (SourceRange ReferenceRange,
1409
- const DeclContext *ReferenceDC,
1410
- TypeChecker &TC,
1411
- std::function<bool (const Decl *)> Pred) {
1408
+ static bool
1409
+ someEnclosingDeclMatches (SourceRange ReferenceRange,
1410
+ const DeclContext *ReferenceDC,
1411
+ TypeChecker &TC,
1412
+ llvm::function_ref<bool (const Decl *)> Pred) {
1412
1413
ASTContext &Ctx = TC.Context ;
1413
1414
1414
1415
// Climb the DeclContext hierarchy to see if any of the containing
@@ -1500,7 +1501,7 @@ bool TypeChecker::isInsideUnavailableDeclaration(
1500
1501
1501
1502
bool TypeChecker::isInsideDeprecatedDeclaration (SourceRange ReferenceRange,
1502
1503
const DeclContext *ReferenceDC){
1503
- std::function< bool ( const Decl *)> IsDeprecated = [](const Decl *D) {
1504
+ auto IsDeprecated = [](const Decl *D) {
1504
1505
return D->getAttrs ().getDeprecated (D->getASTContext ());
1505
1506
};
1506
1507
You can’t perform that action at this time.
0 commit comments