summaryrefslogtreecommitdiffstats
path: root/Source/cmGraphVizWriter.h
diff options
context:
space:
mode:
authorStephan Rohmen <s.rohmen@gmx.de>2020-07-31 20:26:08 (GMT)
committerStephan Rohmen <s.rohmen@gmx.de>2020-07-31 20:26:08 (GMT)
commit57f250dcc0d2b7130194f151462e9b0552d66b09 (patch)
tree6ae1367b9fc3a60431e224b5e4dd64bb8a8d1fe7 /Source/cmGraphVizWriter.h
parent383090bf591e82d5488bd3454ca4c40ceaf575df (diff)
downloadCMake-57f250dcc0d2b7130194f151462e9b0552d66b09.zip
CMake-57f250dcc0d2b7130194f151462e9b0552d66b09.tar.gz
CMake-57f250dcc0d2b7130194f151462e9b0552d66b09.tar.bz2
Graphviz: Fix issue with too many open file streams on Windows platform
Fixes #20931
Diffstat (limited to 'Source/cmGraphVizWriter.h')
-rw-r--r--Source/cmGraphVizWriter.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/Source/cmGraphVizWriter.h b/Source/cmGraphVizWriter.h
index 9766068..d1300ac 100644
--- a/Source/cmGraphVizWriter.h
+++ b/Source/cmGraphVizWriter.h
@@ -46,9 +46,6 @@ public:
void Write();
private:
- using FileStreamMap =
- std::map<std::string, std::unique_ptr<cmGeneratedFileStream>>;
-
struct Connection
{
Connection(cmLinkItem s, cmLinkItem d, std::string scope)
@@ -76,8 +73,8 @@ private:
void WriteNode(cmGeneratedFileStream& fs, cmLinkItem const& item);
- void CreateTargetFile(FileStreamMap& fileStreamMap, cmLinkItem const& target,
- std::string const& fileNameSuffix = "");
+ std::unique_ptr<cmGeneratedFileStream> CreateTargetFile(
+ cmLinkItem const& target, std::string const& fileNameSuffix = "");
void WriteConnection(cmGeneratedFileStream& fs,
cmLinkItem const& dependerTargetName,
@@ -95,7 +92,7 @@ private:
template <typename DirFunc>
void WritePerTargetConnections(const ConnectionsMap& connections,
- const FileStreamMap& streams);
+ const std::string& fileNameSuffix = "");
bool ItemExcluded(cmLinkItem const& item);
bool ItemNameFilteredOut(std::string const& itemName);
@@ -111,8 +108,6 @@ private:
std::string FileName;
cmGeneratedFileStream GlobalFileStream;
- FileStreamMap PerTargetFileStreams;
- FileStreamMap TargetDependersFileStreams;
ConnectionsMap PerTargetConnections;
ConnectionsMap TargetDependersConnections;