summaryrefslogtreecommitdiffstats
path: root/Source/cmListFileCache.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-05-29 20:37:59 (GMT)
committerBrad King <brad.king@kitware.com>2015-07-06 15:22:42 (GMT)
commitd2475bb5c4488a0ef6015f13ee46ddc7a2e4455b (patch)
treed590a226216dde3fad489be3170f240b40f459ee /Source/cmListFileCache.h
parent238aac23514ecdae0d4edb71033e443f30e94158 (diff)
downloadCMake-d2475bb5c4488a0ef6015f13ee46ddc7a2e4455b.zip
CMake-d2475bb5c4488a0ef6015f13ee46ddc7a2e4455b.tar.gz
CMake-d2475bb5c4488a0ef6015f13ee46ddc7a2e4455b.tar.bz2
cmListFileBacktrace: Implement in terms of cmState::Snapshot.
Avoid copying many strings into each backtrace object.
Diffstat (limited to 'Source/cmListFileCache.h')
-rw-r--r--Source/cmListFileCache.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmListFileCache.h b/Source/cmListFileCache.h
index 57bf253..aa8a34c 100644
--- a/Source/cmListFileCache.h
+++ b/Source/cmListFileCache.h
@@ -86,19 +86,19 @@ struct cmListFileFunction: public cmCommandContext
std::vector<cmListFileArgument> Arguments;
};
-class cmListFileBacktrace: private std::vector<cmListFileContext>
+class cmListFileBacktrace
{
public:
- cmListFileBacktrace(cmState::Snapshot snapshot = cmState::Snapshot())
- : Snapshot(snapshot)
+ cmListFileBacktrace(cmState::Snapshot snapshot = cmState::Snapshot(),
+ cmCommandContext const& cc = cmCommandContext())
+ : Context(cc), Snapshot(snapshot)
{
}
- void Append(cmListFileContext const& context);
-
void PrintTitle(std::ostream& out);
void PrintCallStack(std::ostream& out);
private:
+ cmCommandContext Context;
cmState::Snapshot Snapshot;
};