diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-05-29 20:37:59 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-07-06 15:22:42 (GMT) |
commit | d2475bb5c4488a0ef6015f13ee46ddc7a2e4455b (patch) | |
tree | d590a226216dde3fad489be3170f240b40f459ee /Source/cmListFileCache.h | |
parent | 238aac23514ecdae0d4edb71033e443f30e94158 (diff) | |
download | CMake-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.h | 10 |
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; }; |