cmListFileCache: Implement cmListFileBacktrace ctor/dtor out-of-line

This commit is contained in:
Brad King 2015-11-24 19:43:04 -05:00
parent 85fe26b5f7
commit bc1d3a8a87
2 changed files with 13 additions and 4 deletions

View File

@ -398,6 +398,17 @@ bool cmListFileParser::AddArgument(cmListFileLexer_Token* token,
} }
} }
cmListFileBacktrace::cmListFileBacktrace(cmState::Snapshot snapshot,
cmCommandContext const& cc)
: Context(cc)
, Snapshot(snapshot)
{
}
cmListFileBacktrace::~cmListFileBacktrace()
{
}
void cmListFileBacktrace::PrintTitle(std::ostream& out) const void cmListFileBacktrace::PrintTitle(std::ostream& out) const
{ {
if (!this->Snapshot.IsValid()) if (!this->Snapshot.IsValid())

View File

@ -90,10 +90,8 @@ class cmListFileBacktrace
{ {
public: public:
cmListFileBacktrace(cmState::Snapshot snapshot = cmState::Snapshot(), cmListFileBacktrace(cmState::Snapshot snapshot = cmState::Snapshot(),
cmCommandContext const& cc = cmCommandContext()) cmCommandContext const& cc = cmCommandContext());
: Context(cc), Snapshot(snapshot) ~cmListFileBacktrace();
{
}
void PrintTitle(std::ostream& out) const; void PrintTitle(std::ostream& out) const;
void PrintCallStack(std::ostream& out) const; void PrintCallStack(std::ostream& out) const;