cmListFileCache: Rename FromCommandContext to FromListFileFunction

Accept a `cmListFileFunction` instead of a `cmCommandContext`.
This commit is contained in:
Brad King
2022-01-25 08:37:37 -05:00
parent 3c4fa4c892
commit 0386641142
4 changed files with 19 additions and 18 deletions

View File

@@ -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;