Skip to content

Commit 24a92f5

Browse files
committed
DependencyScanningTool.h: Use more robust std::function (fixup for #120699)
1 parent 42b2325 commit 24a92f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/include/clang/Tooling/DependencyScanning/DependencyScanningTool.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "clang/Tooling/JSONCompilationDatabase.h"
1616
#include "llvm/ADT/DenseSet.h"
1717
#include "llvm/ADT/MapVector.h"
18+
#include <functional>
1819
#include <optional>
1920
#include <string>
2021
#include <vector>
@@ -25,7 +26,7 @@ namespace dependencies {
2526

2627
/// A callback to lookup module outputs for "-fmodule-file=", "-o" etc.
2728
using LookupModuleOutputCallback =
28-
llvm::function_ref<std::string(const ModuleID &, ModuleOutputKind)>;
29+
std::function<std::string(const ModuleID &, ModuleOutputKind)>;
2930

3031
/// Graph of modular dependencies.
3132
using ModuleDepsGraph = std::vector<ModuleDeps>;

0 commit comments

Comments
 (0)