summaryrefslogtreecommitdiffstats
path: root/Source/cmListFileCache.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-01-25 13:37:37 (GMT)
committerBrad King <brad.king@kitware.com>2022-01-25 13:39:52 (GMT)
commit03866411423c1b844580eb4879f378a592d73809 (patch)
treef9023f091e1ad1f99bf8064ffe6e8e545d253f43 /Source/cmListFileCache.h
parent3c4fa4c8924c1e219981bbc30ad02a89fd144ab6 (diff)
downloadCMake-03866411423c1b844580eb4879f378a592d73809.zip
CMake-03866411423c1b844580eb4879f378a592d73809.tar.gz
CMake-03866411423c1b844580eb4879f378a592d73809.tar.bz2
cmListFileCache: Rename FromCommandContext to FromListFileFunction
Accept a `cmListFileFunction` instead of a `cmCommandContext`.
Diffstat (limited to 'Source/cmListFileCache.h')
-rw-r--r--Source/cmListFileCache.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmListFileCache.h b/Source/cmListFileCache.h
index 16ba2c2..1d45b30 100644
--- a/Source/cmListFileCache.h
+++ b/Source/cmListFileCache.h
@@ -143,10 +143,11 @@ public:
{
}
- static cmListFileContext FromCommandContext(
- cmCommandContext const& lfcc, std::string const& fileName,
+ static cmListFileContext FromListFileFunction(
+ cmListFileFunction const& lff, std::string const& fileName,
cm::optional<std::string> deferId = {})
{
+ cmCommandContext const& lfcc = lff;
cmListFileContext lfc;
lfc.FilePath = fileName;
lfc.Line = lfcc.Line;