diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-03-23 15:18:41 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2019-03-23 20:45:10 (GMT) |
commit | ccf76c6e4cfd9fc7b04db099f7e165cda2336096 (patch) | |
tree | 66b9e41b3ab0273f4d6bf545ae5c80ed0dbe2ade /Source/cmTarget.cxx | |
parent | 7742bf4ff5180f85bc4401745e11ce6e031f32e7 (diff) | |
download | CMake-ccf76c6e4cfd9fc7b04db099f7e165cda2336096.zip CMake-ccf76c6e4cfd9fc7b04db099f7e165cda2336096.tar.gz CMake-ccf76c6e4cfd9fc7b04db099f7e165cda2336096.tar.bz2 |
cmTarget: Move member `TLLCommands` to impl
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index d3b2e1d..6dd7887 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -188,6 +188,8 @@ public: std::vector<cmListFileBacktrace> LinkDirectoriesBacktraces; std::vector<std::string> LinkImplementationPropertyEntries; std::vector<cmListFileBacktrace> LinkImplementationPropertyBacktraces; + std::vector<std::pair<cmTarget::TLLSignature, cmListFileContext>> + TLLCommands; cmListFileBacktrace Backtrace; }; @@ -738,13 +740,13 @@ bool cmTarget::PushTLLCommandTrace(TLLSignature signature, cmListFileContext const& lfc) { bool ret = true; - if (!this->TLLCommands.empty()) { - if (this->TLLCommands.back().first != signature) { + if (!impl->TLLCommands.empty()) { + if (impl->TLLCommands.back().first != signature) { ret = false; } } - if (this->TLLCommands.empty() || this->TLLCommands.back().second != lfc) { - this->TLLCommands.emplace_back(signature, lfc); + if (impl->TLLCommands.empty() || impl->TLLCommands.back().second != lfc) { + impl->TLLCommands.emplace_back(signature, lfc); } return ret; } @@ -755,7 +757,7 @@ void cmTarget::GetTllSignatureTraces(std::ostream& s, TLLSignature sig) const (sig == cmTarget::KeywordTLLSignature ? "keyword" : "plain"); s << "The uses of the " << sigString << " signature are here:\n"; cmStateDirectory cmDir = impl->Makefile->GetStateSnapshot().GetDirectory(); - for (auto const& cmd : this->TLLCommands) { + for (auto const& cmd : impl->TLLCommands) { if (cmd.first == sig) { cmListFileContext lfc = cmd.second; lfc.FilePath = cmDir.ConvertToRelPathIfNotContained( |