diff options
Diffstat (limited to 'Source/cmListFileCache.h')
-rw-r--r-- | Source/cmListFileCache.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/Source/cmListFileCache.h b/Source/cmListFileCache.h index c3da81b..7c19f24 100644 --- a/Source/cmListFileCache.h +++ b/Source/cmListFileCache.h @@ -128,6 +128,17 @@ public: { } + static cmListFileContext FromListFilePath(std::string const& filePath) + { + // We are entering a file-level scope but have not yet reached + // any specific line or command invocation within it. This context + // is useful to print when it is at the top but otherwise can be + // skipped during call stack printing. + cmListFileContext lfc; + lfc.FilePath = filePath; + return lfc; + } + static cmListFileContext FromListFileFunction( cmListFileFunction const& lff, std::string const& fileName, cm::optional<std::string> deferId = {}) @@ -154,9 +165,6 @@ public: // Default-constructed backtrace is empty. cmListFileBacktrace() = default; - // Get a backtrace with the given file scope added to the top. - cmListFileBacktrace Push(std::string const& file) const; - // Get a backtrace with the given call context added to the top. cmListFileBacktrace Push(cmListFileContext const& lfc) const; |