diff options
Diffstat (limited to 'Source/cmListFileCache.cxx')
-rw-r--r-- | Source/cmListFileCache.cxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/cmListFileCache.cxx b/Source/cmListFileCache.cxx index 2849c3d..5711da2 100644 --- a/Source/cmListFileCache.cxx +++ b/Source/cmListFileCache.cxx @@ -268,3 +268,18 @@ bool cmListFileCacheParseFunction(cmListFileLexer* lexer, return false; } + +//---------------------------------------------------------------------------- +std::ostream& operator<<(std::ostream& os, cmListFileContext const& lfc) +{ + os << lfc.FilePath; + if(lfc.Line) + { + os << ":" << lfc.Line; + if(!lfc.Name.empty()) + { + os << " (" << lfc.Name << ")"; + } + } + return os; +} |