@@ -49,7 +49,7 @@ class ContextFinder : public SourceEntityWalker {
49
49
ASTContext &Ctx;
50
50
SourceManager &SM;
51
51
SourceRange Target;
52
- function_ref <bool (ASTNode)> IsContext;
52
+ std::function <bool (ASTNode)> IsContext;
53
53
SmallVector<ASTNode, 4 > AllContexts;
54
54
bool contains (ASTNode Enclosing) {
55
55
auto Result = SM.rangeContains (Enclosing.getSourceRange (), Target);
@@ -59,12 +59,12 @@ class ContextFinder : public SourceEntityWalker {
59
59
}
60
60
public:
61
61
ContextFinder (SourceFile &SF, ASTNode TargetNode,
62
- function_ref <bool (ASTNode)> IsContext =
62
+ std::function <bool (ASTNode)> IsContext =
63
63
[](ASTNode N) { return true ; }) :
64
64
SF (SF), Ctx(SF.getASTContext()), SM(Ctx.SourceMgr),
65
65
Target (TargetNode.getSourceRange()), IsContext(IsContext) {}
66
66
ContextFinder (SourceFile &SF, SourceLoc TargetLoc,
67
- function_ref <bool (ASTNode)> IsContext =
67
+ std::function <bool (ASTNode)> IsContext =
68
68
[](ASTNode N) { return true ; }) :
69
69
SF (SF), Ctx(SF.getASTContext()), SM(Ctx.SourceMgr),
70
70
Target (TargetLoc), IsContext(IsContext) {
0 commit comments