diff options
author | Brad King <brad.king@kitware.com> | 2018-10-17 14:46:00 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-10-18 12:11:19 (GMT) |
commit | dacbb414550db63ff40225f3f6057c3c74bcf5c9 (patch) | |
tree | 6f51a0e964005de1c3a715e8734181838777aa2a /Source/cmTargetDepend.h | |
parent | a6e02f881dc5e74d79201f761fb28c99a9e7d2af (diff) | |
download | CMake-dacbb414550db63ff40225f3f6057c3c74bcf5c9.zip CMake-dacbb414550db63ff40225f3f6057c3c74bcf5c9.tar.gz CMake-dacbb414550db63ff40225f3f6057c3c74bcf5c9.tar.bz2 |
Track backtraces in target dependencies internally
Carry backtraces on target dependency edges to refer to the line in
project code that caused the edge to appear.
Diffstat (limited to 'Source/cmTargetDepend.h')
-rw-r--r-- | Source/cmTargetDepend.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmTargetDepend.h b/Source/cmTargetDepend.h index b698db6..5ea0085 100644 --- a/Source/cmTargetDepend.h +++ b/Source/cmTargetDepend.h @@ -19,6 +19,7 @@ class cmTargetDepend // mutable members to achieve a map with set syntax. mutable bool Link; mutable bool Util; + mutable cmListFileBacktrace Backtrace; public: cmTargetDepend(cmGeneratorTarget const* t) @@ -42,8 +43,13 @@ public: this->Link = true; } } + void SetBacktrace(cmListFileBacktrace const& bt) const + { + this->Backtrace = bt; + } bool IsLink() const { return this->Link; } bool IsUtil() const { return this->Util; } + cmListFileBacktrace const& GetBacktrace() const { return this->Backtrace; } }; /** Unordered set of (direct) dependencies of a target. */ |