summaryrefslogtreecommitdiffstats
path: root/Source/cmListFileCache.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-11-25 17:33:06 (GMT)
committerBrad King <brad.king@kitware.com>2015-11-25 17:33:06 (GMT)
commit9342a4c2033ce7bb6845afd3625ac9c195a8e22d (patch)
treee8ccf1393ae30bd639cb0f4313d248d094358804 /Source/cmListFileCache.cxx
parent99533c8e345c627f5f5a98be5cda7b7624756fb9 (diff)
parent5f860ebb67e86e0aa407e26ddf79652f73742211 (diff)
downloadCMake-9342a4c2033ce7bb6845afd3625ac9c195a8e22d.zip
CMake-9342a4c2033ce7bb6845afd3625ac9c195a8e22d.tar.gz
CMake-9342a4c2033ce7bb6845afd3625ac9c195a8e22d.tar.bz2
Merge branch 'reduce-cmState-accumulation' into reduce-cmState-accumulation-for-master
Diffstat (limited to 'Source/cmListFileCache.cxx')
-rw-r--r--Source/cmListFileCache.cxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/cmListFileCache.cxx b/Source/cmListFileCache.cxx
index 5050229..7ba61f3 100644
--- a/Source/cmListFileCache.cxx
+++ b/Source/cmListFileCache.cxx
@@ -398,6 +398,21 @@ bool cmListFileParser::AddArgument(cmListFileLexer_Token* token,
}
}
+cmListFileBacktrace::cmListFileBacktrace(cmState::Snapshot snapshot,
+ cmCommandContext const& cc)
+ : Context(cc)
+ , Snapshot(snapshot)
+{
+ if (this->Snapshot.IsValid())
+ {
+ this->Snapshot.Keep();
+ }
+}
+
+cmListFileBacktrace::~cmListFileBacktrace()
+{
+}
+
void cmListFileBacktrace::PrintTitle(std::ostream& out) const
{
if (!this->Snapshot.IsValid())