diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-05-29 22:37:59 +0200 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-07-06 11:22:42 -0400 |
commit | d2475bb5c4488a0ef6015f13ee46ddc7a2e4455b (patch) | |
tree | d590a226216dde3fad489be3170f240b40f459ee /Source/cmListFileCache.h | |
parent | 238aac23514ecdae0d4edb71033e443f30e94158 (diff) | |
download | cmake-d2475bb5c4488a0ef6015f13ee46ddc7a2e4455b.tar.gz |
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.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmListFileCache.h b/Source/cmListFileCache.h index 57bf25386b..aa8a34c6c5 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; }; |