summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmListFileCache.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmListFileCache.h b/Source/cmListFileCache.h
index c9556ab..5773e6a 100644
--- a/Source/cmListFileCache.h
+++ b/Source/cmListFileCache.h
@@ -73,6 +73,14 @@ public:
std::string FilePath;
long Line = 0;
+ cmListFileContext() = default;
+ cmListFileContext(std::string name, std::string filePath, long line)
+ : Name(std::move(name))
+ , FilePath(std::move(filePath))
+ , Line(line)
+ {
+ }
+
static cmListFileContext FromCommandContext(cmCommandContext const& lfcc,
std::string const& fileName)
{